From 3b5a73c436eb22e0cda59469263490705e149cb9 Mon Sep 17 00:00:00 2001 From: schererleander Date: Fri, 9 Jan 2026 16:57:15 +0100 Subject: refactor: use flake-parts, change modules structure --- hosts/adam/configuration.nix | 105 ++++++++++++------------------------------- 1 file changed, 28 insertions(+), 77 deletions(-) (limited to 'hosts/adam/configuration.nix') diff --git a/hosts/adam/configuration.nix b/hosts/adam/configuration.nix index 0abfeac..18f3d4f 100644 --- a/hosts/adam/configuration.nix +++ b/hosts/adam/configuration.nix @@ -1,9 +1,11 @@ { pkgs, - username, ... }: +let + username = "schererleander"; +in { imports = [ ./hardware-configuration.nix @@ -11,33 +13,13 @@ boot = { kernelPackages = pkgs.linuxPackages_latest; - kernelParams = [ - "amd_pstate=active" - "quiet" - "splash" - "boot.shell_on_fail" - "udev.log_priority=3" - "rd.systemd.show_status=auto" - ]; - initrd = { - luks.devices."luks-803851e9-7fa8-4367-a927-0bb76d0fe830".device = - "/dev/disk/by-uuid/803851e9-7fa8-4367-a927-0bb76d0fe830"; - }; - consoleLogLevel = 3; + kernelParams = [ "amd_pstate=active" ]; + initrd.luks.devices."luks-803851e9-7fa8-4367-a927-0bb76d0fe830".device = + "/dev/disk/by-uuid/803851e9-7fa8-4367-a927-0bb76d0fe830"; loader = { timeout = 0; systemd-boot.enable = true; efi.canTouchEfiVariables = true; - systemd-boot.consoleMode = "max"; - }; - plymouth = { - enable = true; - theme = "lone"; - themePackages = with pkgs; [ - (adi1090x-plymouth-themes.override { - selected_themes = [ "lone" ]; - }) - ]; }; }; @@ -47,20 +29,6 @@ enable32Bit = true; }; - hardware.bluetooth = { - enable = true; - powerOnBoot = true; - settings = { - General = { - Experimental = true; - FastConnectable = true; - }; - Policy = { - AutoEnable = true; - }; - }; - }; - networking.networkmanager.enable = true; # Localisation @@ -84,48 +52,31 @@ programs.dconf.enable = true; nx = { + plymouth.enable = true; desktop.kde.enable = true; - dns.enable = true; - - user.${username} = { - stateVersion = "25.11"; - packages = with pkgs; [ - imv - mpv - firefox - zoxide - ]; - shellAliases = { - open = "xdg-open"; - }; + steam.enable = true; + dns.enable = true; + hardware.bluetooth.enable = true; + }; - nx = { - terminal.defaultShell = "zsh"; + # User configuration + users.users.${username} = { + isNormalUser = true; + home = "/home/${username}"; + shell = pkgs.zsh; + ignoreShellProgramCheck = true; + extraGroups = [ + "wheel" + "networkmanager" + "video" + "input" + ]; + }; - editors.neovim = { - enable = true; - langs = { - python = true; - go = true; - latex = true; - nix = true; - lua = true; - }; - }; - git.enable = true; - cli.opencode.enable = true; - media = { - spicetify.enable = true; - nixcord.enable = true; - }; - productivity = { - nextcloud-client.enable = true; - obsidian.enable = true; - latex.enable = true; - anki.enable = true; - }; - }; - }; + home-manager.users.${username} = { + imports = [ ../../home/schererleander.nix ]; + home.username = username; + home.homeDirectory = "/home/${username}"; }; system.stateVersion = "25.11"; -- cgit v1.3.1