Use home-manager. Move hardware config to directory.
This commit is contained in:
parent
b9590201e7
commit
75fa5d4f0c
6 changed files with 158 additions and 47 deletions
21
flake.nix
21
flake.nix
|
@ -5,6 +5,7 @@
|
|||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05"; # Stable nixpkgs.
|
||||
lanzaboote.url = "github:nix-community/lanzaboote"; # Secure boot.
|
||||
nixos-hardware.url = "github:NixOS/nixos-hardware"; # Hardware specific config.
|
||||
home-manager.url = "github:nix-community/home-manager/release-25.05"; # Manage user home directories.
|
||||
|
||||
# Updated packages.
|
||||
fluffychat2.url = "github:NixOS/nixpkgs?ref=pull/419632/head"; # FluffyChat 2.0.0
|
||||
|
@ -17,6 +18,7 @@
|
|||
nixpkgs,
|
||||
lanzaboote,
|
||||
nixos-hardware,
|
||||
home-manager,
|
||||
fluffychat2,
|
||||
feishin0_16_0,
|
||||
...
|
||||
|
@ -25,15 +27,24 @@
|
|||
nixosConfigurations.muskduck = nixpkgs.lib.nixosSystem rec {
|
||||
system = "x86_64-linux";
|
||||
|
||||
specialArgs = {
|
||||
fluffychat2 = import fluffychat2 { inherit system; };
|
||||
feishin0_16_0 = import feishin0_16_0 { inherit system; };
|
||||
};
|
||||
|
||||
modules = [
|
||||
lanzaboote.nixosModules.lanzaboote
|
||||
nixos-hardware.nixosModules.lenovo-thinkpad-t480
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.fern = ./home.nix;
|
||||
|
||||
home-manager.extraSpecialArgs = {
|
||||
fluffychat2 = import fluffychat2 { inherit system; };
|
||||
feishin0_16_0 = import feishin0_16_0 { inherit system; };
|
||||
};
|
||||
}
|
||||
|
||||
./configuration.nix
|
||||
./hardware-configuration/muskduck.nix # Include the results of the hardware scan.
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue