hosts: steamdeck: add initial config

This commit is contained in:
2023-07-21 22:07:21 +02:00
parent 19b91aebd9
commit 7442cb7b95
5 changed files with 329 additions and 3 deletions

View File

@@ -11,7 +11,7 @@
# └─ ./home.nix
#
{ lib, inputs, nixpkgs, nixos-hardware, home-manager, nur, user, location, agenix, ... }:
{ lib, inputs, nixpkgs, nixos-hardware, home-manager, nur, user, location, agenix, jovian-nixos, ... }:
let
system = "x86_64-linux"; # System architecture
@@ -78,6 +78,32 @@ in
];
};
steamdeck = lib.nixosSystem { # Laptop profile
inherit system;
specialArgs = { inherit inputs user location nixos-hardware nur agenix jovian-nixos; };
modules = [
agenix.nixosModules.default
nur.nixosModules.nur
./steamdeck
./configuration_desktop.nix
nixos-hardware.nixosModules.common-cpu-amd
nixos-hardware.nixosModules.common-gpu-amd
nixos-hardware.nixosModules.common-pc-ssd
home-manager.nixosModules.home-manager {
nixpkgs.overlays = [
nur.overlay
];
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit user; };
home-manager.users.${user} = {
imports = [(import ./home.nix)] ++ [(import ./steamdeck/home.nix)];
};
}
];
};
dmz = lib.nixosSystem { # Desktop profile
inherit system;
#user = "dmz-user";