Add gaming profile and make host profile selection explicit
This commit is contained in:
parent
2efa87f90c
commit
0a34d3f062
16
flake.nix
16
flake.nix
|
|
@ -48,7 +48,6 @@
|
|||
let
|
||||
system = "x86_64-linux";
|
||||
username = "josh";
|
||||
profile = "desktop";
|
||||
homePath = ./. + "/users/${username}/home.nix";
|
||||
|
||||
pkgs = import nixpkgs {
|
||||
|
|
@ -60,6 +59,7 @@
|
|||
mkHost =
|
||||
{
|
||||
host,
|
||||
profile,
|
||||
extraModules ? [ ],
|
||||
}:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
|
|
@ -79,12 +79,19 @@
|
|||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
laptop = mkHost { host = "laptop"; };
|
||||
laptop = mkHost {
|
||||
host = "laptop";
|
||||
profile = "gaming";
|
||||
};
|
||||
|
||||
vm = mkHost { host = "vm"; };
|
||||
vm = mkHost {
|
||||
host = "vm";
|
||||
profile = "desktop";
|
||||
};
|
||||
|
||||
live = mkHost {
|
||||
host = "installation-iso";
|
||||
profile = "desktop";
|
||||
extraModules = [
|
||||
(nixpkgs + "/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix")
|
||||
{ environment.systemPackages = [ install-system.packages.${system}.default ]; }
|
||||
|
|
@ -94,7 +101,8 @@
|
|||
|
||||
homeConfigurations.${username} = home-manager.lib.homeManagerConfiguration {
|
||||
extraSpecialArgs = {
|
||||
inherit inputs profile username;
|
||||
inherit inputs username;
|
||||
profile = "desktop";
|
||||
};
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
{
|
||||
profile,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
../../profiles/desktop
|
||||
../../profiles/${profile}
|
||||
|
||||
../../modules/nixos
|
||||
../../modules/drivers
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
{
|
||||
profile,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
../../profiles/desktop
|
||||
../../profiles/${profile}
|
||||
|
||||
../../modules/nixos
|
||||
../../modules/drivers
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
{
|
||||
profile,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
../../profiles/desktop
|
||||
../../profiles/${profile}
|
||||
|
||||
../../modules/nixos
|
||||
../../modules/drivers
|
||||
|
|
|
|||
|
|
@ -29,6 +29,4 @@
|
|||
modules.screenshot.enable = true;
|
||||
|
||||
modules.tailscale.enable = true;
|
||||
|
||||
modules.steam.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
../desktop
|
||||
];
|
||||
|
||||
modules.steam.enable = true;
|
||||
}
|
||||
Loading…
Reference in New Issue