📦 Moved more configs to common files, and refactored code with common

This commit is contained in:
2025-01-08 19:47:02 +01:00
parent 57ebb73095
commit 89acd3e5cb
15 changed files with 317 additions and 243 deletions

View File

@ -43,15 +43,19 @@
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager = {
# Backups conflicting files in case of error
backupFileExtension = "bkp";
useGlobalPkgs = true;
useUserPackages = true;
# Passes inputs as an argument to home-manager
extraSpecialArgs = { inherit inputs; };
users.martin = import ./home-manager;
};
home-manager =
let
common = import ./common.nix;
in
{
# Backups conflicting files in case of error
backupFileExtension = "bkp";
useGlobalPkgs = true;
useUserPackages = true;
# Passes inputs as an argument to home-manager
extraSpecialArgs = { inherit inputs; };
users.${common.username} = import ./home-manager;
};
}
stylix.nixosModules.stylix
];