mirror of
https://github.com/Andrey0189/nixos-config-reborn.git
synced 2025-09-15 10:06:00 +03:00
new attributes
This commit is contained in:
18
flake.nix
18
flake.nix
@@ -20,13 +20,17 @@
|
||||
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
stateVersion = "24.05";
|
||||
user = "amper";
|
||||
hostname = "slim3";
|
||||
in {
|
||||
|
||||
# nixos - system hostname
|
||||
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||
# slim3 - system hostname
|
||||
nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs system;
|
||||
inherit inputs system stateVersion hostname user;
|
||||
};
|
||||
|
||||
modules = [
|
||||
./nixos/configuration.nix
|
||||
];
|
||||
@@ -34,7 +38,13 @@
|
||||
|
||||
homeConfigurations.amper = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
modules = [ ./home-manager/home.nix ];
|
||||
extraSpecialArgs = {
|
||||
inherit inputs stateVersion user;
|
||||
};
|
||||
|
||||
modules = [
|
||||
./home-manager/home.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user