test
This commit is contained in:
parent
4bb98831f1
commit
c24f9a540e
1 changed files with 2 additions and 18 deletions
20
flake.nix
20
flake.nix
|
@ -32,24 +32,6 @@
|
||||||
};
|
};
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
in {
|
in {
|
||||||
# Set up users with home-manager
|
|
||||||
homeManagerConfigurations = {
|
|
||||||
# Configuration for user "Albert"
|
|
||||||
albert = home-manager.lib.homeManagerConfiguration {
|
|
||||||
inherit system pkgs;
|
|
||||||
username = "albert";
|
|
||||||
homeDirectory = "/home/albert";
|
|
||||||
configuration.imports = [ ./users/albert/home.nix ];
|
|
||||||
};
|
|
||||||
# Configuration for user "root"
|
|
||||||
root = home-manager.lib.homeManagerConfiguration {
|
|
||||||
inherit system pkgs;
|
|
||||||
username = "root";
|
|
||||||
homeDirectory = "/root";
|
|
||||||
configuration.imports = [ ./users/root/home.nix ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# NixOS Configuration files:
|
# NixOS Configuration files:
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
# Declare a generic configuration using the $hostname variable:
|
# Declare a generic configuration using the $hostname variable:
|
||||||
|
@ -72,6 +54,8 @@
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.users.albert = import ./users/albert/home.nix;
|
||||||
|
home-manager.users.root = import ./users/root/home.nix;
|
||||||
}
|
}
|
||||||
]; # modules
|
]; # modules
|
||||||
}; # lib.nixosSystem - nixos-laptop
|
}; # lib.nixosSystem - nixos-laptop
|
||||||
|
|
Loading…
Reference in a new issue