Compare commits

..
3 Commits
Author SHA1 Message Date
Administrateur 43de971de3 Fix on configuration files 2026-02-11 20:04:42 +01:00
Administrateur 4f10ad35cd Fix on modules name and on zsh 2026-02-11 19:15:20 +01:00
Administrateur 6911410f6a Move home-manager users and fix on flake 2026-02-11 17:16:01 +01:00
26 changed files with 113 additions and 121 deletions
+2 -4
View File
@@ -70,11 +70,9 @@
++ [
./hosts/nixos/overlays.nix
home-manager.nixosModules.home-manager
(import-tree ./hosts/common)
(import-tree ./modules/home/common)
(import-tree ./modules/home/nixos)
(import-tree ./hosts/nixos/home)
(import-tree ./hosts/common)
(import-tree ./hosts/nixos/home/users)
];
};
};
-2
View File
@@ -1,7 +1,5 @@
{ ... }:
{
system.primaryUser = "alistreaza";
nix = {
settings = {
experimental-features = "nix-command flakes";
+5 -5
View File
@@ -11,11 +11,11 @@
};
# Shell apps
user.shell.zsh.enable = true;
user.shell.git.enable = true;
user.shell.neovim.enable = true;
user.shell.nh.enable = true;
user.shell.devenv.enable = true;
home.shell.zsh.enable = true;
home.shell.git.enable = true;
home.shell.neovim.enable = true;
home.shell.nh.enable = true;
home.shell.devenv.enable = true;
# No Home Application Folders
targets.darwin.linkApps.enable = false;
+1
View File
@@ -1,5 +1,6 @@
{ ... }:
{
system.primaryUser = "alistreaza";
nixpkgs.hostPlatform = "aarch64-darwin";
# Homebrew apps
-41
View File
@@ -1,41 +0,0 @@
{ import-tree, ... }:
{
home-manager.users.alistreaza = {
imports = [
(import-tree ../../../modules/home/common)
(import-tree ../../../modules/home/nixos)
];
home = {
username = "alistreaza";
homeDirectory = "/home/alistreaza";
};
# Shell apps
user.shell.zsh.enable = true;
user.shell.git.enable = true;
user.shell.neovim.enable = true;
user.shell.nh.enable = true;
user.shell.devenv.enable = true;
# Code editor
user.ide.zed.enable = true;
# IDE Jetbrains
user.ide.jetbrains.idea.enable = false;
user.ide.jetbrains.pycharm.enable = false;
user.ide.jetbrains.phpstorm.enable = false;
user.ide.jetbrains.rustrover.enable = false;
# IDE Data Jetbrains
user.ide.jetbrains.datagrip.enable = false;
user.ide.jetbrains.dataspell.enable = false;
# Markdown Editor
user.editor.obsidian.enable = false;
# The state version is required and should stay at the version you
# originally installed.
home.stateVersion = "25.11";
};
}
+44
View File
@@ -0,0 +1,44 @@
{ import-tree, ... }:
{
home-manager.users.alistreaza = {
imports = [
(import-tree ../../../../modules/home/common)
(import-tree ../../../../modules/home/nixos)
(import-tree ../partials)
];
home = {
username = "alistreaza";
homeDirectory = "/home/alistreaza";
};
# Shell apps
home.shell.zsh.enable = true;
home.shell.git.enable = true;
home.shell.neovim.enable = true;
home.shell.nh.enable = true;
home.shell.env.enable = true;
# Code editor
home.ide.zed.enable = true;
# IDE Jetbrains
home.ide.jetbrains.idea.enable = true;
home.ide.jetbrains.pycharm.enable = true;
home.ide.jetbrains.phpstorm.enable = true;
home.ide.jetbrains.rustrover.enable = true;
home.ide.jetbrains.goland.enable = true;
# IDE Data Jetbrains
home.ide.jetbrains.datagrip.enable = true;
home.ide.jetbrains.dataspell.enable = true;
# Markdown Editor
home.md.obsidian.enable = true;
# The state version is required and should stay at the version you
# originally installed.
home.stateVersion = "25.11";
};
}
+11 -26
View File
@@ -1,46 +1,31 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
modulesPath,
...
}:
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usbhid"
"uas"
"sd_mod"
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "uas" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/6c7250d7-8a40-4b12-94de-276c4b325473";
fileSystems."/" =
{ device = "/dev/disk/by-uuid/3baee95a-6c53-4e20-90c0-946e1faf3d24";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/2620-29F6";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/2731-04DA";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [
{ device = "/dev/disk/by-uuid/7c10a8e6-c396-457e-a66f-577bd217b2e3"; }
swapDevices =
[ { device = "/dev/disk/by-uuid/ad7bef67-655a-4800-8882-17bb5c61ec62"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+7
View File
@@ -0,0 +1,7 @@
{ ... }:
{
programs.zsh = {
enable = true;
enableCompletion = true;
};
}
@@ -6,10 +6,10 @@
}:
with lib;
let
cfg = config.user.shell.devenv;
cfg = config.home.shell.env;
in
{
options.user.shell.devenv = {
options.home.shell.env = {
enable = mkEnableOption "System devenv service";
};
config = mkIf cfg.enable {
+3 -2
View File
@@ -5,15 +5,16 @@
}:
with lib;
let
cfg = config.user.shell.git;
cfg = config.home.shell.git;
in
{
options.user.shell.git = {
options.home.shell.git = {
enable = mkEnableOption "Zen Editor options";
};
config = mkIf cfg.enable {
programs.git = {
enable = true;
settings = {
user = {
name = "Laurent Gueret";
+2 -2
View File
@@ -1,10 +1,10 @@
{ lib, config, ... }:
with lib;
let
cfg = config.user.shell.neovim;
cfg = config.home.shell.neovim;
in
{
options.user.shell.neovim = {
options.home.shell.neovim = {
enable = mkEnableOption "System neovim service";
};
config = mkIf cfg.enable {
+2 -2
View File
@@ -1,10 +1,10 @@
{ lib, config, ... }:
with lib;
let
cfg = config.user.shell.nh;
cfg = config.home.shell.nh;
in
{
options.user.shell.nh = {
options.home.shell.nh = {
enable = mkEnableOption "System nh service";
};
config = mkIf cfg.enable {
+2 -3
View File
@@ -1,17 +1,16 @@
{ lib, config, ... }:
with lib;
let
cfg = config.user.shell.zsh;
cfg = config.home.shell.zsh;
in
{
options.user.shell.zsh = {
options.home.shell.zsh = {
enable = mkEnableOption "System zsh service";
};
config = mkIf cfg.enable {
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
oh-my-zsh = {
+2 -2
View File
@@ -6,10 +6,10 @@
}:
with lib;
let
cfg = config.user.ide.jetbrains.clion;
cfg = config.home.ide.jetbrains.clion;
in
{
options.user.ide.jetbrains.clion = {
options.home.ide.jetbrains.clion = {
enable = mkEnableOption "JetBrains options";
};
config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}:
with lib;
let
cfg = config.user.ide.jetbrains.datagrip;
cfg = config.home.ide.jetbrains.datagrip;
in
{
options.user.ide.jetbrains.datagrip = {
options.home.ide.jetbrains.datagrip = {
enable = mkEnableOption "JetBrains options";
};
config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}:
with lib;
let
cfg = config.user.ide.jetbrains.dataspell;
cfg = config.home.ide.jetbrains.dataspell;
in
{
options.user.ide.jetbrains.dataspell = {
options.home.ide.jetbrains.dataspell = {
enable = mkEnableOption "JetBrains options";
};
config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}:
with lib;
let
cfg = config.user.ide.jetbrains.goland;
cfg = config.home.ide.jetbrains.goland;
in
{
options.user.ide.jetbrains.goland = {
options.home.ide.jetbrains.goland = {
enable = mkEnableOption "JetBrains options";
};
config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}:
with lib;
let
cfg = config.user.ide.jetbrains.idea;
cfg = config.home.ide.jetbrains.idea;
in
{
options.user.ide.jetbrains.idea = {
options.home.ide.jetbrains.idea = {
enable = mkEnableOption "JetBrains options";
};
config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}:
with lib;
let
cfg = config.user.ide.jetbrains.phpstorm;
cfg = config.home.ide.jetbrains.phpstorm;
in
{
options.user.ide.jetbrains.phpstorm = {
options.home.ide.jetbrains.phpstorm = {
enable = mkEnableOption "JetBrains options";
};
config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}:
with lib;
let
cfg = config.user.ide.jetbrains.pycharm;
cfg = config.home.ide.jetbrains.pycharm;
in
{
options.user.ide.jetbrains.pycharm = {
options.home.ide.jetbrains.pycharm = {
enable = mkEnableOption "JetBrains options";
};
config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}:
with lib;
let
cfg = config.user.ide.jetbrains.rider;
cfg = config.home.ide.jetbrains.rider;
in
{
options.user.ide.jetbrains.rider = {
options.home.ide.jetbrains.rider = {
enable = mkEnableOption "JetBrains options";
};
config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}:
with lib;
let
cfg = config.user.ide.jetbrains.rubymine;
cfg = config.home.ide.jetbrains.rubymine;
in
{
options.user.ide.jetbrains.rubymine = {
options.home.ide.jetbrains.rubymine = {
enable = mkEnableOption "JetBrains options";
};
config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}:
with lib;
let
cfg = config.user.ide.jetbrains.rustrover;
cfg = config.home.ide.jetbrains.rustrover;
in
{
options.user.ide.jetbrains.rustrover = {
options.home.ide.jetbrains.rustrover = {
enable = mkEnableOption "JetBrains options";
};
config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}:
with lib;
let
cfg = config.user.ide.jetbrains.webstorm;
cfg = config.home.ide.jetbrains.webstorm;
in
{
options.user.ide.jetbrains.webstorm = {
options.home.ide.jetbrains.webstorm = {
enable = mkEnableOption "JetBrains options";
};
config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}:
with lib;
let
cfg = config.user.editor.obsidian;
cfg = config.home.md.obsidian;
in
{
options.user.editor.obsidian = {
options.home.md.obsidian = {
enable = mkEnableOption "Obsidian options";
};
config = mkIf cfg.enable {
+2 -2
View File
@@ -6,10 +6,10 @@
}:
with lib;
let
cfg = config.user.ide.zed;
cfg = config.home.ide.zed;
in
{
options.user.ide.zed = {
options.home.ide.zed = {
enable = mkEnableOption "Zen Editor options";
};
config = mkIf cfg.enable {