diff --git a/flake.nix b/flake.nix index d3a992b3..ca246cb1 100644 --- a/flake.nix +++ b/flake.nix @@ -163,6 +163,65 @@ ]; }; + nixosConfigurations.foxhut = + let + system = "aarch64-linux"; + pkgs = mkPkgs system; + pkgs-unstable = mkPkgsUnstable system; + base = mkNixOsBase { + inherit system pkgs; + hostname = "foxhut"; + }; + networking = mkNixOsNetworking { + inherit pkgs; + use-iwd = false; + }; + graphical = mkNixOsGraphical { + inherit pkgs pkgs-unstable niri; + background = "pan-wire-3.png"; + use-display-manager = true; + }; + xenia = + let + system = "aarch64-linux"; + pkgs = mkPkgs system; + home = mkHome { + username = "xenia"; + home-dir = "/home/xenia"; + prompt-color = 205; + inherit system pkgs; + }; + pc = mkPC { inherit system pkgs; }; + in { home = home; pc = pc; }; + asahi-firmware = builtins.fetchGit { + url = "git@githug.xyz:xenia/asahi-firmware.git"; + ref = "main"; + rev = "012d29d4b4d7148414bb649c39805479c7a4327b"; + }; + tiny-dfr = import ./nixos/tiny-dfr.nix { pkgs = pkgs-unstable; }; + in + nixpkgs.lib.nixosSystem { + inherit system; + modules = [ + nixos-apple-silicon.nixosModules.apple-silicon-support + niri.nixosModules.niri + ./nixos/machines/foxhut/hardware.nix + (import ./nixos/machines/foxhut/boot.nix { inherit pkgs pkgs-unstable asahi-firmware; }) + (import ./nixos/machines/foxhut/machine.nix { inherit pkgs pkgs-unstable asahi-firmware; }) + base + networking + graphical + tiny-dfr + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.xenia = xenia.home; + } + { home-manager.users.xenia = xenia.pc; } + ]; + }; + nixosConfigurations.gender-station = let system = "x86_64-linux";