From 2df5bc584899f427495cc20927170de2a2c84b32 Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Fri, 12 Jun 2026 18:10:16 +0200 Subject: Setup luna --- modules/hosts/luna/configuration.nix | 62 ++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 modules/hosts/luna/configuration.nix (limited to 'modules/hosts/luna/configuration.nix') 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"; + }; +} -- cgit v1.2.3