This commit is contained in:
iFargle 2023-07-01 18:58:38 +09:00
parent 4bb98831f1
commit c24f9a540e

View file

@ -32,24 +32,6 @@
};
lib = nixpkgs.lib;
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:
nixosConfigurations = {
# Declare a generic configuration using the $hostname variable:
@ -72,6 +54,8 @@
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.albert = import ./users/albert/home.nix;
home-manager.users.root = import ./users/root/home.nix;
}
]; # modules
}; # lib.nixosSystem - nixos-laptop