mirror of
https://github.com/Moe1369/nix-fleet.git
synced 2026-04-24 15:59:06 +02:00
migrated
This commit is contained in:
5
modules/platform/flake-parts.nix
Normal file
5
modules/platform/flake-parts.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ inputs, ... }: {
|
||||
imports = [
|
||||
inputs.home-manager.flakeModules.home-manager
|
||||
];
|
||||
}
|
||||
14
modules/platform/mkhost.nix
Normal file
14
modules/platform/mkhost.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ inputs, ... }: {
|
||||
flake.lib.mkHost = { system, host, extraModules ? [] }:
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = {
|
||||
inherit host system;
|
||||
pkgs-unstable = import inputs.nixpkgs-unstable {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
};
|
||||
modules = [ inputs.self.nixosModules.${host} ] ++ extraModules;
|
||||
};
|
||||
}
|
||||
17
modules/platform/nixsettings.nix
Normal file
17
modules/platform/nixsettings.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ inputs, ... }: {
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
];
|
||||
|
||||
perSystem = { system, ... }: {
|
||||
_module.args.pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
|
||||
_module.args.pkgs-unstable = import inputs.nixpkgs-unstable {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user