refactor
This commit is contained in:
parent
0b97b828be
commit
f185ce3c92
3 changed files with 96 additions and 43 deletions
|
|
@ -1,21 +1,51 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./audio.nix
|
||||
./boot.nix
|
||||
./env.nix
|
||||
./networking.nix
|
||||
./persistence.nix
|
||||
./bluetooth.nix
|
||||
./btrfs.nix
|
||||
./fonts.nix
|
||||
./nix.nix
|
||||
./users.nix
|
||||
./ssh.nix
|
||||
./steam.nix
|
||||
./stylix.nix
|
||||
./wayland.nix
|
||||
./zsh.nix
|
||||
];
|
||||
{
|
||||
conf,
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
...
|
||||
} @ inputs: let
|
||||
inherit (conf) system;
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
pkgs = import nixpkgs {
|
||||
inherit (conf) system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
|
||||
specialArgs = inputs;
|
||||
in {
|
||||
build = nixpkgs.lib.nixosSystem {
|
||||
inherit system pkgs specialArgs;
|
||||
|
||||
modules = [
|
||||
./base.nix
|
||||
|
||||
conf.extraConfig
|
||||
conf.hardware-configuration
|
||||
|
||||
./audio.nix
|
||||
./boot.nix
|
||||
./env.nix
|
||||
./networking.nix
|
||||
./persistence.nix
|
||||
./bluetooth.nix
|
||||
./btrfs.nix
|
||||
./fonts.nix
|
||||
./nix.nix
|
||||
./users.nix
|
||||
./ssh.nix
|
||||
./steam.nix
|
||||
./stylix.nix
|
||||
./wayland.nix
|
||||
./zsh.nix
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
({config, ...}: {
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = specialArgs // {system-config = config;};
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue