diff options
| author | Dominik Kaiser | 2026-06-12 18:10:16 +0200 |
|---|---|---|
| committer | Dominik Kaiser | 2026-06-12 18:10:16 +0200 |
| commit | 2df5bc584899f427495cc20927170de2a2c84b32 (patch) | |
| tree | d1a87bcd3c17d605e3f25e4bb8d7a6ec060c73ba /modules/hosts/luna/configuration.nix | |
| download | nixos-2df5bc584899f427495cc20927170de2a2c84b32.tar.gz nixos-2df5bc584899f427495cc20927170de2a2c84b32.zip | |
Setup luna
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"; + }; +} |
