diff options
Diffstat (limited to 'modules/hosts/luna/configuration.nix')
| -rw-r--r-- | modules/hosts/luna/configuration.nix | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/modules/hosts/luna/configuration.nix b/modules/hosts/luna/configuration.nix new file mode 100644 index 0000000..90df410 --- /dev/null +++ b/modules/hosts/luna/configuration.nix @@ -0,0 +1,62 @@ +{ self, inputs, ... }: { + + flake.nixosModules.lunaConfiguration = { config, lib, pkgs, ... }: + + { + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nixpkgs.config.allowUnfree = true; + + imports = with self.nixosModules; [ + lunaHardware + powerManagement + bluetooth + niri + audio + audioProduction + ]; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + boot.kernelPackages = pkgs.linuxPackages_latest; + + networking.hostName = "luna"; + networking.networkmanager.enable = true; + + time.timeZone = "Europe/Berlin"; + + i18n.defaultLocale = "en_IE.UTF-8"; + console = { + font = "Lat2-Terminus16"; + keyMap = "de"; + }; + + services.displayManager.ly.enable = true; + services.emacs.enable = true; + + programs.steam.enable = true; + + programs.direnv.enable = true; + programs.direnv.nix-direnv.enable = true; + + services.printing.enable = true; + + # Enable touchpad support (enabled default in most desktopManager). + services.libinput.enable = true; + + users.users.dk = { + isNormalUser = true; + extraGroups = [ "wheel" ]; + hashedPasswordFile = "/persistent/passwd"; + }; + home-manager.users.dk = self.homeModules.lunaHome; + + environment.systemPackages = [ + pkgs.devenv + pkgs.wget + pkgs.git + inputs.home-manager.packages.${pkgs.system}.default + ]; + + system.stateVersion = "26.05"; + }; +} |
