📦 Moved more configs to common files, and refactored code with common
This commit is contained in:
22
flake.nix
22
flake.nix
@ -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
|
||||
];
|
||||
|
Reference in New Issue
Block a user