final changes, system is usable

This commit is contained in:
Satria 2026-02-08 20:50:39 +07:00
commit ea2ee2009e
10 changed files with 35 additions and 29 deletions

View file

@ -12,14 +12,20 @@
};
outputs = inputs: let
args = { inherit inputs; } // import ./lib/options.nix;
pkgs = import inputs.nixpkgs {
system = "x86_64-linux";
overlays = [ inputs.gl.overlay ];
config.allowUnfree = true;
config = {
allowUnfree = true;
permittedInsecurePackages = [ "ventoy-qt5-1.1.10" ];
};
};
args = {
inherit inputs;
} // import ./lib/options.nix;
nixosConfigForHost = { host }: pkgs.lib.nixosSystem {
nixosConfigForHost = host: inputs.nixpkgs.lib.nixosSystem {
inherit pkgs;
specialArgs = args;
modules = [
./hosts/${host}/config.nix
@ -30,6 +36,7 @@
extraSpecialArgs = args;
backupFileExtension = ".hm-backup";
users.${args.username} = import ./hosts/${host}/home.nix;
sharedModules = [ inputs.ctp.homeModules.catppuccin ];
};
}
];