diff --git a/flake.nix b/flake.nix index ab475e9..20c6d10 100644 --- a/flake.nix +++ b/flake.nix @@ -47,6 +47,29 @@ } ]; }; + + NicksNixDesktop = lib.nixosSystem { + inherit system; + specialArgs = { inherit user; }; + + modules = [ + { + networking.hostName = "NicksNixDesktop"; + } + kmonad.nixosModules.default + ./hosts/desktop + ./hosts/configuration.nix + ./modules/kmonad.nix + home-manager.nixosModules.home-manager { + home-manager = { + useGlobalPkgs = true; + useUserPackages = true; + extraSpecialArgs = { inherit user; }; + users.${user} = import ./users/${user}.nix; + }; + } + ]; + }; }; }; } diff --git a/hosts/desktop/default.nix b/hosts/desktop/default.nix new file mode 100644 index 0000000..128ed9c --- /dev/null +++ b/hosts/desktop/default.nix @@ -0,0 +1,28 @@ +{ ... }: + + +{ + imports = [ + ./hardware-configuration.nix + ]; + + hardware.bluetooth.enable = true; + + time.hardwareClockInLocalTime = true; + + boot.loader = { + efi = { + canTouchEfiVariables = true; + efiSysMountPoint = "/boot"; + }; + grub = { + devices = [ "nodev" ]; + efiSupport = true; + enable = true; + version = 2; + useOSProber = true; + extraEntries = '' + ''; + }; + }; +}