diff --git a/common/default.nix b/common/default.nix index cd01ff5..3eb0653 100644 --- a/common/default.nix +++ b/common/default.nix @@ -5,4 +5,15 @@ ]; programs.zsh.enable = true; + + nix = { + settings = { + auto-optimise-store = true; + allowed-users = [ "@wheel" ]; + experimental-features = [ + "nix-command" + "flakes" + ]; + }; + }; } diff --git a/common/home.nix b/common/home.nix index df1f4f2..b798f0d 100644 --- a/common/home.nix +++ b/common/home.nix @@ -19,8 +19,15 @@ claude-code gnome-extension-manager lmstudio + sccache ]; + home.file.".cargo/config.toml".text = '' + [target.'cfg(target_os = "linux")'] + linker = "${pkgs.clang}/bin/clang" + rustflags = ["-C", "link-arg=-fuse-ld=${pkgs.mold-wrapped}/bin/mold"] + ''; + programs.zsh = { enable = true; oh-my-zsh = { diff --git a/devices/p14s/default.nix b/devices/p14s/default.nix index f91b54d..89a0bf0 100644 --- a/devices/p14s/default.nix +++ b/devices/p14s/default.nix @@ -22,7 +22,7 @@ configurationLimit = 5; }; - # swap & hibernate + # swap & hibernate boot.initrd.luks.devices."luks-d51bdb99-5966-40d3-a920-83ea78a73699" = { device = "/dev/disk/by-uuid/d51bdb99-5966-40d3-a920-83ea78a73699"; crypttabExtraOpts = [ "tpm2-device=auto" ]; diff --git a/styles/desktop.nix b/styles/desktop.nix index 62dfc11..4ca2b13 100644 --- a/styles/desktop.nix +++ b/styles/desktop.nix @@ -18,7 +18,6 @@ ]; boot.initrd.checkJournalingFS = false; - boot.plymouth = { enable = true; theme = "bgrt"; @@ -88,27 +87,21 @@ }; }; - nix = { - settings = { - auto-optimise-store = true; - experimental-features = [ - "nix-command" - "flakes" - ]; - }; - }; - environment.systemPackages = with pkgs; [ neovim htop dnsmasq + sccache ]; environment.shellAliases = { vim = "nvim"; }; - environment.variables.NIX_AUTO_RUN = "1"; + environment.variables = { + RUSTC_WRAPPER = "sccache"; + NIX_AUTO_RUN = "1"; + }; services.openssh.enable = true; services.fprintd.enable = true; @@ -120,6 +113,20 @@ ]; networking.firewall.allowedUDPPorts = [ 8080 ]; networking.firewall.trustedInterfaces = [ "virbr0" "docker0" ]; + + hardware.graphics = { + enable = true; + enable32Bit = true; + extraPackages = with pkgs; [ + mesa + vulkan-loader + vulkan-validation-layers + ]; + extraPackages32 = with pkgs.pkgsi686Linux; [ + mesa + vulkan-loader + ]; + }; system.stateVersion = "26.05"; # yes