My NixOS and Home Manager configurations
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

move all aspects into styx namespace

quasigod 833c9236 009371b4

+172 -280
+1 -1
modules/apps/adb.nix
··· 1 1 { 2 - den.aspects.apps.provides.adb = 2 + styx.apps.provides.adb = 3 3 { user, ... }: 4 4 { 5 5 nixos = {
+1 -1
modules/apps/core.nix
··· 1 1 { 2 - den.aspects.apps._.coreutils.homeManager = 2 + styx.apps._.coreutils.homeManager = 3 3 { pkgs, ... }: 4 4 { 5 5 home.packages = with pkgs; [
+25 -28
modules/apps/default.nix
··· 1 1 { __findFile, ... }: 2 2 { 3 - den.aspects = { 4 - quasi.includes = [ 5 - <nushell> 6 - <fish> 7 - <shell> 8 - <apps/coreutils> 9 - ]; 10 - workstation.includes = [ 11 - <dev> 12 - <apps/gui> 3 + den.aspects.quasi.includes = [ 4 + <styx/nushell> 5 + <styx/fish> 6 + <styx/shell> 7 + <styx/apps/coreutils> 8 + ]; 9 + styx.workstation.includes = [ 10 + <styx/dev> 11 + <styx/apps/gui> 13 12 14 - <apps/distrobox> 15 - <apps/ghostty> 16 - <apps/git> 17 - <apps/jujutsu> 18 - <apps/halloy> 19 - <apps/helix> 20 - <apps/localsend> 21 - <apps/nh> 22 - <apps/nix-tools> 23 - <apps/radicle> 24 - <apps/topgrade> 25 - <apps/vicinae> 26 - <apps/wezterm> 27 - <apps/zen> 28 - <apps/zsa> 29 - ]; 30 - }; 31 - 13 + <styx/apps/distrobox> 14 + <styx/apps/ghostty> 15 + <styx/apps/git> 16 + <styx/apps/jujutsu> 17 + <styx/apps/halloy> 18 + <styx/apps/helix> 19 + <styx/apps/localsend> 20 + <styx/apps/nh> 21 + <styx/apps/nix-tools> 22 + <styx/apps/radicle> 23 + <styx/apps/topgrade> 24 + <styx/apps/vicinae> 25 + <styx/apps/wezterm> 26 + <styx/apps/zen> 27 + <styx/apps/zsa> 28 + ]; 32 29 }
+1 -1
modules/apps/dev.nix
··· 1 1 { 2 - den.aspects.dev.homeManager = 2 + styx.dev.homeManager = 3 3 { pkgs, ... }: 4 4 { 5 5 home.packages = with pkgs; [
+1 -1
modules/apps/distrobox.nix
··· 1 1 { 2 - den.aspects.apps._.distrobox.homeManager.programs = { 2 + styx.apps._.distrobox.homeManager.programs = { 3 3 distrobox.enable = true; 4 4 distrobox.enableSystemdUnit = false; 5 5 };
+1 -1
modules/apps/fish.nix
··· 1 1 { 2 - den.aspects.fish = { 2 + styx.fish = { 3 3 nixos.programs.fish.enable = true; 4 4 homeManager = 5 5 { pkgs, ... }:
+1 -1
modules/apps/ghostty.nix
··· 1 1 { 2 - den.aspects.apps._.ghostty.homeManager.programs.ghostty = { 2 + styx.apps._.ghostty.homeManager.programs.ghostty = { 3 3 enable = true; 4 4 enableBashIntegration = true; 5 5 enableFishIntegration = true;
+1 -1
modules/apps/git.nix
··· 6 6 in 7 7 8 8 { 9 - den.aspects.apps._.git.homeManager = 9 + styx.apps._.git.homeManager = 10 10 { lib, ... }: 11 11 let 12 12 git_settings = {
+1 -1
modules/apps/gui.nix
··· 1 1 { inputs, ... }: 2 2 { 3 - den.aspects.apps._.gui.homeManager = 3 + styx.apps._.gui.homeManager = 4 4 { pkgs, ... }: 5 5 { 6 6 home.packages = with pkgs; [
+1 -1
modules/apps/halloy.nix
··· 1 1 { 2 - den.aspects.apps._.halloy.homeManager = 2 + styx.apps._.halloy.homeManager = 3 3 { config, ... }: 4 4 { 5 5 sops.secrets.libera_pass = { };
+1 -1
modules/apps/helix.nix
··· 1 1 { lib, ... }: 2 2 { 3 - den.aspects.apps._.helix.homeManager = 3 + styx.apps._.helix.homeManager = 4 4 { pkgs, ... }: 5 5 { 6 6 home.sessionVariables = {
+1 -1
modules/apps/jujutsu.nix
··· 1 1 { 2 - den.aspects.apps._.jujutsu.homeManager = 2 + styx.apps._.jujutsu.homeManager = 3 3 { pkgs, ... }: 4 4 { 5 5 home.shellAliases.jji = "jj --ignore-immutable";
+1 -1
modules/apps/localsend.nix
··· 1 1 { 2 - den.aspects.apps._.localsend = { 2 + styx.apps._.localsend = { 3 3 nixos.programs.localsend.enable = true; 4 4 homeManager = 5 5 { pkgs, ... }:
+1 -1
modules/apps/nh.nix
··· 1 1 { 2 - den.aspects.apps._.nh = { 2 + styx.apps._.nh = { 3 3 homeManager = 4 4 { config, ... }: 5 5 {
+1 -1
modules/apps/nix-tools.nix
··· 1 1 { inputs, ... }: 2 2 { 3 - den.aspects.apps._.nix-tools = { 3 + styx.apps._.nix-tools = { 4 4 homeManager = 5 5 { pkgs, ... }: 6 6 {
+1 -1
modules/apps/nushell.nix
··· 1 1 { lib, ... }: 2 2 { 3 - den.aspects.nushell = 3 + styx.nushell = 4 4 { user, ... }: 5 5 { 6 6 nixos =
+1 -1
modules/apps/radicle.nix
··· 1 1 { 2 - den.aspects.apps._.radicle.homeManager = 2 + styx.apps._.radicle.homeManager = 3 3 { pkgs, config, ... }: 4 4 { 5 5 home = {
+2 -2
modules/apps/shell.nix
··· 1 1 { 2 - den.aspects.shell.homeManager = 2 + styx.shell.homeManager = 3 3 { pkgs, config, ... }: 4 4 { 5 5 home.shellAliases = { ··· 34 34 surround("\"", "\"", truncate_end(24, description.first_line(), "…")), 35 35 if(conflict, "conflict"), 36 36 if(divergent, "divergent"), 37 - if(hidden, "hidden"), 37 + if(hidden, styx, "hidden"), 38 38 ) 39 39 ' 40 40 '';
+1 -1
modules/apps/topgrade.nix
··· 1 1 { 2 - den.aspects.apps._.topgrade.homeManager.programs.topgrade = { 2 + styx.apps._.topgrade.homeManager.programs.topgrade = { 3 3 enable = true; 4 4 settings = { 5 5 misc = {
+1 -1
modules/apps/vicinae.nix
··· 1 1 { inputs, ... }: 2 2 { 3 - den.aspects.apps._.vicinae.homeManager = { 3 + styx.apps._.vicinae.homeManager = { 4 4 imports = [ inputs.vicinae.homeManagerModules.default ]; 5 5 xdg.configFile."vicinae/vicinae.json".enable = false; 6 6 services.vicinae = {
+1 -1
modules/apps/wezterm/default.nix
··· 1 1 { 2 - den.aspects.apps._.wezterm = { 2 + styx.apps._.wezterm = { 3 3 homeManager.programs.wezterm = { 4 4 enable = true; 5 5 extraConfig = builtins.readFile ./config.lua;
+1 -1
modules/apps/zen.nix
··· 1 1 { inputs, ... }: 2 2 { 3 - den.aspects.apps._.zen.homeManager = { 3 + styx.apps._.zen.homeManager = { 4 4 imports = [ inputs.zen-browser.homeModules.default ]; 5 5 programs.zen-browser.enable = true; 6 6 home.sessionVariables.BROWSER = "zen";
+1 -1
modules/apps/zsa.nix
··· 1 1 { 2 - den.aspects.apps._.zsa.nixos = 2 + styx.apps._.zsa.nixos = 3 3 { pkgs, ... }: 4 4 { 5 5 hardware.keyboard.zsa.enable = true;
+3 -4
modules/boot.nix
··· 1 1 { 2 - den, 2 + styx, 3 3 lib, 4 4 inputs, 5 5 ... 6 6 }: 7 7 { 8 - den.aspects = { 8 + styx = { 9 9 boot = { 10 10 nixos.boot = { 11 - # grub.enable = false; 12 11 initrd.systemd.enable = true; 13 12 loader = { 14 13 systemd-boot.enable = lib.mkDefault true; # needs to be overridden for secure boot ··· 18 17 }; 19 18 20 19 provides.secure = { 21 - includes = [ den.aspects.boot ]; 20 + includes = [ styx.boot ]; 22 21 nixos = { 23 22 imports = [ inputs.lanzaboote.nixosModules.lanzaboote ]; 24 23 boot = {
+1 -1
modules/catppuccin/default.nix
··· 4 4 wallpaper = ./background_upscaled.png; 5 5 in 6 6 { 7 - den.aspects.theming._.catppuccin = flavor: accent: { 7 + styx.theming._.catppuccin = flavor: accent: { 8 8 nixos = { 9 9 imports = [ inputs.catppuccin.nixosModules.default ]; 10 10 catppuccin = {
+5 -7
modules/cosmic.nix
··· 1 - { den, ... }: 1 + { den, styx, ... }: 2 2 { 3 - den.aspects.wayland._.cosmic = den.lib.parametric { 3 + styx.wayland._.cosmic = den.lib.parametric { 4 4 includes = [ 5 - den.aspects.wayland._.base 5 + styx.wayland._.base 6 6 ]; 7 7 homeManager = 8 8 { pkgs, lib, ... }: ··· 36 36 } 37 37 ); 38 38 networkmanagerapplet = super.networkmanagerapplet.overrideAttrs { 39 - patches = ( 40 - super.fetchpatch { 39 + patches = super.fetchpatch { 41 40 url = "https://github.com/pop-os/network-manager-applet/commit/8af78f7ebfa770f24cf46693cb215c5c22dbacfb.patch"; 42 41 hash = "sha256-Q9oB6s2LDuzoj1jQbC+EARL9CguoacLAdeSlx+KQ+Yw="; 43 - } 44 - ); 42 + }; 45 43 }; 46 44 }) 47 45 ];
+2 -7
modules/default.nix
··· 1 1 { den, inputs, ... }: 2 2 { 3 + # Some preferred defaults 3 4 den.default = { 4 5 nixos = 5 6 { pkgs, lib, ... }: ··· 22 23 home-manager.useGlobalPkgs = true; 23 24 }; 24 25 homeManager = { 26 + programs.home-manager.enable = true; 25 27 home = { 26 28 sessionPath = [ "$HOME/.local/bin" ]; 27 29 sessionVariables.NIXPKGS_ALLOW_UNFREE = "1"; 28 30 stateVersion = "22.05"; 29 31 }; 30 - programs.home-manager.enable = true; 31 32 }; 32 33 includes = [ 33 34 den.provides.home-manager 34 35 den.provides.define-user 35 - # (den.lib.take.exactly ( 36 - # { OS, host }: 37 - # { 38 - # nixos.networking.hostName = host.hostName; 39 - # } 40 - # )) 41 36 ]; 42 37 }; 43 38 }
+4 -2
modules/den.nix
··· 1 1 { inputs, den, ... }: 2 - 3 2 { 4 - imports = [ inputs.den.flakeModule ]; 3 + imports = [ 4 + inputs.den.flakeModule 5 + (inputs.den.namespace "styx" true) 6 + ]; 5 7 _module.args.__findFile = den.lib.__findFile; 6 8 den.hosts.x86_64-linux.hades.users.quasi = { }; 7 9 den.hosts.x86_64-linux.zagreus.users.quasi = { };
+1 -1
modules/filesystems.nix
··· 1 1 { lib, ... }: 2 2 { 3 - den.aspects.filesystems.provides = { 3 + styx.filesystems.provides = { 4 4 nixos.boot.supportedFilesystems = [ "ntfs" ]; 5 5 zfs.nixos = 6 6 { config, pkgs, ... }:
+3 -3
modules/gaming.nix
··· 1 - { den, inputs, ... }: 1 + { styx, inputs, ... }: 2 2 { 3 - den.aspects.gaming = { 3 + styx.gaming = { 4 4 provides.min = 5 5 { host, ... }: 6 6 { ··· 45 45 }; 46 46 47 47 provides.max = { 48 - includes = [ den.aspects.gaming._.replays ]; 48 + includes = [ styx.gaming._.replays ]; 49 49 nixos = 50 50 { pkgs, ... }: 51 51 {
+4 -4
modules/hacking/default.nix
··· 2 2 inputs, 3 3 lib, 4 4 withSystem, 5 - den, 5 + den, styx, 6 6 ... 7 7 }: 8 8 { 9 - den.aspects.hax = { 10 - includes = [ den.aspects.hax._.subfinder ]; 9 + styx.hax = { 10 + includes = [ styx.hax._.subfinder ]; 11 11 nixos = { 12 12 environment.etc.hosts.mode = "0644"; 13 13 # TODO until exegol supports podman ··· 152 152 programs.msfconsole.prependFlags = [ "--defer-module-loads" ]; 153 153 }) 154 154 (inputs.wrapper-manager.lib.wrapWith pkgs { 155 - basePackage = (withSystem system (p: p.config.packages.mcp-zap-server)); 155 + basePackage = withSystem system (p: p.config.packages.mcp-zap-server); 156 156 env = { 157 157 ZAP_API_PORT.value = "8080"; 158 158 ZAP_API_URL.value = "localhost";
+1 -1
modules/hacking/subfinder.nix
··· 1 1 { 2 - den.aspects.hax._.subfinder.homeManager = 2 + styx.hax._.subfinder.homeManager = 3 3 { lib, config, ... }: 4 4 { 5 5 sops.secrets = {
+12 -16
modules/hosts/hades/default.nix
··· 1 1 { 2 - den, 2 + styx, 3 3 config, 4 4 inputs, 5 5 ... ··· 25 25 26 26 den.hosts.x86_64-linux.hades = { inherit (config.hostConfig.hades) displays primaryDisplay; }; 27 27 den.aspects.hades = { 28 - includes = with den.aspects; [ 28 + includes = with styx; [ 29 29 desktop 30 30 hax 31 31 gaming._.min ··· 34 34 apps._.radicle 35 35 apps._.zsa 36 36 services._.syncthing._.client 37 - (pipewire._.lowlatency { 38 - quantum = 256; 39 - rate = 48000; 40 - }) 41 37 ]; 42 38 43 39 nixos = ··· 48 44 nixos-hardware.nixosModules.common-cpu-amd 49 45 nixos-hardware.nixosModules.common-gpu-amd 50 46 nixos-hardware.nixosModules.common-pc-ssd 51 - # nix-gaming.nixosModules.pipewireLowLatency 47 + nix-gaming.nixosModules.pipewireLowLatency 52 48 ]; 53 49 54 50 hardware.amdgpu.opencl.enable = true; 55 51 nixpkgs.config.rocmSupport = true; 56 52 environment.sessionVariables.HSA_OVERRIDE_GFX_VERSION = "11.0.1"; 57 - 58 - # services.pipewire.lowLatency = { 59 - # enable = true; 60 - # rate = 48000; 61 - # quantum = 256; 62 - # }; 53 + services = { 54 + pipewire.lowLatency = { 55 + # enable = true; 56 + # rate = 48000; 57 + # quantum = 256; 58 + }; 59 + resolved.fallbackDns = [ ]; 60 + fwupd.enable = true; 61 + }; 63 62 64 63 boot.kernelPackages = 65 64 inputs.chaotic.legacyPackages.${pkgs.stdenv.hostPlatform.system}.linuxPackages_cachyos; 66 - 67 - services.resolved.fallbackDns = [ ]; 68 65 systemd.network = { 69 66 enable = true; 70 67 links."01-ethernet" = { ··· 87 84 ]; 88 85 }; 89 86 }; 90 - services.fwupd.enable = true; 91 87 }; 92 88 }; 93 89 }
+2 -2
modules/hosts/zagreus/default.nix
··· 1 1 { 2 - den, 2 + den, styx, 3 3 config, 4 4 inputs, 5 5 ... ··· 19 19 20 20 den.hosts.x86_64-linux.zagreus = { inherit (config.hostConfig.zagreus) displays primaryDisplay; }; 21 21 den.aspects.zagreus = { 22 - includes = with den.aspects; [ 22 + includes = with styx; [ 23 23 # wayland._.cosmic 24 24 laptop 25 25 hax
+4 -4
modules/performance.nix
··· 1 - { den, ... }: 1 + { styx, ... }: 2 2 { 3 - den.aspects.performance = { 3 + styx.performance = { 4 4 nixos.boot = { 5 5 kernel.sysctl = { 6 6 "transparent_hugepage" = "always"; ··· 13 13 }; 14 14 provides = { 15 15 responsive = { 16 - includes = [ den.aspects.performance ]; 16 + includes = [ styx.performance ]; 17 17 nixos.boot = { 18 18 kernel.sysctl."vm.swappiness" = 1; 19 19 kernelParams = [ ··· 28 28 }; 29 29 }; 30 30 max = { 31 - includes = [ den.aspects.performance._.responsive ]; 31 + includes = [ styx.performance._.responsive ]; 32 32 nixos.boot.kernelParams = [ 33 33 "usbcore.autosuspend=60" 34 34 "workqueue.power_efficient=false"
+1 -1
modules/power-mgmt.nix
··· 1 1 { 2 - den.aspects.power-management.nixos = { 2 + styx.power-management.nixos = { 3 3 services.power-profiles-daemon.enable = false; 4 4 hardware.system76.power-daemon.enable = true; 5 5 services.thermald.enable = true;
-98
modules/pwlowlatency.nix
··· 1 - { 2 - den.aspects.pipewire._.lowlatency = 3 - { 4 - quantum ? 44100, 5 - rate ? 32, 6 - ... 7 - }: 8 - { 9 - nixos = 10 - { pkgs, lib, ... }: 11 - let 12 - qr = "${toString quantum}/${toString rate}"; 13 - inherit (lib.generators) toLua; 14 - in 15 - { 16 - services.pipewire = { 17 - # make sure PipeWire is enabled if the module is imported 18 - # and low latency is enabledd 19 - enable = true; 20 - 21 - # write extra config 22 - extraConfig = { 23 - pipewire."99-lowlatency" = { 24 - "context.properties" = { 25 - "default.clock.min-quantum" = quantum; 26 - }; 27 - 28 - "module.rt.args" = { 29 - "nice.level" = -15; 30 - "rt.prio" = 88; 31 - "rt.time.soft" = 200000; 32 - "rt.time.hard" = 200000; 33 - }; 34 - }; 35 - 36 - pipewire-pulse."99-lowlatency" = { 37 - "pulse.properties" = { 38 - "server.address" = [ "unix:native" ]; 39 - "pulse.min.req" = qr; 40 - "pulse.min.quantum" = qr; 41 - "pulse.min.frag" = qr; 42 - }; 43 - }; 44 - 45 - client."99-lowlatency" = { 46 - "stream.properties" = { 47 - "node.latency" = qr; 48 - "resample.quality" = 1; 49 - }; 50 - }; 51 - }; 52 - 53 - # ensure WirePlumber is enabled explicitly (defaults to true while PW is enabled) 54 - # and write extra config to ship low latency rules for alsa 55 - wireplumber = { 56 - enable = true; 57 - configPackages = 58 - let 59 - # generate "matches" section of the rules 60 - matches = 61 - toLua 62 - { 63 - multiline = false; # looks better while inline 64 - indent = false; 65 - } 66 - [ 67 - [ 68 - [ 69 - "node.name" 70 - "matches" 71 - "alsa_output.*" 72 - ] 73 - ] 74 - ]; # nested lists are to produce `{{{ }}}` in the output 75 - 76 - # generate "apply_properties" section of the rules 77 - apply_properties = toLua { } { 78 - "audio.format" = "S32LE"; 79 - "audio.rate" = rate * 2; 80 - "api.alsa.period-size" = 2; 81 - }; 82 - in 83 - [ 84 - (pkgs.writeTextDir "share/lowlatency.lua.d/99-alsa-lowlatency.lua" '' 85 - -- Generated by nix-gaming 86 - alsa_monitor.rules = { 87 - { 88 - matches = ${matches}; 89 - apply_properties = ${apply_properties}; 90 - } 91 - } 92 - '') 93 - ]; 94 - }; 95 - }; 96 - }; 97 - }; 98 - }
+1 -1
modules/secrets/default.nix
··· 7 7 }; 8 8 in 9 9 { 10 - den.aspects.secrets = { 10 + styx.secrets = { 11 11 homeManager = 12 12 { pkgs, ... }: 13 13 {
+1 -1
modules/services/cachix.nix
··· 1 1 { 2 - den.aspects.services._.cachix.nixos = 2 + styx.services._.cachix.nixos = 3 3 { config, ... }: 4 4 { 5 5 sops.secrets.cachix_token = { };
+2 -2
modules/services/easyeffects/default.nix
··· 1 1 { lib, ... }: 2 2 { 3 - den.aspects.services._.easyeffects.homeManager = { 3 + styx.services._.easyeffects.homeManager = { 4 4 systemd.user.services.easyeffects.Service.Restart = lib.mkForce "never"; 5 5 services.easyeffects = { 6 6 enable = true; ··· 17 17 names: 18 18 builtins.listToAttrs ( 19 19 map (name: { 20 - name = name; 20 + inherit name; 21 21 value = builtins.fromJSON (builtins.readFile (./presets + "/${name}.json")); 22 22 }) names 23 23 );
+1 -1
modules/services/flatpak.nix
··· 1 1 { 2 - den.aspects.services._.flatpak.nixos = { 2 + styx.services._.flatpak.nixos = { 3 3 appstream.enable = true; 4 4 services.flatpak.enable = true; 5 5 };
+1 -1
modules/services/ollama.nix
··· 1 1 { 2 - den.aspects.ai._.ollama.nixos = 2 + styx.ai._.ollama.nixos = 3 3 { lib, config, ... }: 4 4 { 5 5 services.ollama = {
+1 -1
modules/services/printing.nix
··· 1 1 { 2 - den.aspects.services._.printing.nixos = 2 + styx.services._.printing.nixos = 3 3 { pkgs, ... }: 4 4 { 5 5 services = {
+1 -1
modules/services/sshd.nix
··· 1 1 { 2 - den.aspects.services._.ssh = { 2 + styx.services._.ssh = { 3 3 provides.client.homeManager.services.ssh-agent.enable = true; 4 4 nixos = { 5 5 environment.enableAllTerminfo = true;
+1 -1
modules/services/syncthing.nix
··· 1 1 { 2 - den.aspects.services._.syncthing = 2 + styx.services._.syncthing = 3 3 let 4 4 devices = { 5 5 hades.id = "EI3OAYC-BEJG55M-AP5OIOR-ZVDT5UE-P2GBSEY-7UJIQEQ-2IJ5CZ2-FSG6EQF";
+29 -27
modules/systems.nix
··· 1 1 { den, __findFile, ... }: 2 2 { 3 - den.aspects = { 3 + styx = { 4 4 workstation = den.lib.parametric.atLeast { 5 5 includes = [ 6 - <boot> 7 - <secrets> 8 - <services/easyeffects> 9 - <services/flatpak> 10 - <services/printing> 11 - <services/ssh/client> 12 - <services/syncthing/client> 13 - <theming> 14 - <wayland/cosmic> 6 + <styx/boot> 7 + <styx/networking> 8 + <styx/secrets> 9 + <styx/services/easyeffects> 10 + <styx/services/flatpak> 11 + <styx/services/printing> 12 + <styx/services/ssh/client> 13 + <styx/services/syncthing/client> 14 + <styx/theming> 15 + <styx/wayland/cosmic> 15 16 16 - <virt/podman> 17 - <virt/qemu> 18 - <tailscale> 17 + <styx/virt/podman> 18 + <styx/virt/qemu> 19 + <styx/tailscale> 19 20 20 - <udev> 21 - <xdg> 21 + <styx/udev> 22 + <styx/xdg> 22 23 ]; 23 24 }; 24 25 laptop = den.lib.parametric.atLeast { 25 26 includes = [ 26 - <boot/graphical> 27 - <boot/secure> 28 - <performance/responsive> 29 - <power-management> 30 - <workstation> 27 + <styx/boot/graphical> 28 + <styx/boot/secure> 29 + <styx/performance/responsive> 30 + <styx/power-management> 31 + <styx/workstation> 31 32 ]; 32 33 }; 33 34 desktop = den.lib.parametric.atLeast { 34 35 includes = [ 35 - <performance/max> 36 - <services/ssh> 37 - <workstation> 36 + <styx/performance/max> 37 + <styx/services/ssh> 38 + <styx/workstation> 38 39 ]; 39 40 }; 40 41 server = den.lib.parametric.atLeast { 41 42 includes = [ 42 - <filesystem/zfs> 43 - <performance> 44 - <services/ssh> 45 - <virt/podman> 43 + <styx/filesystem/zfs> 44 + <styx/performance> 45 + <styx/services/ssh> 46 + <styx/virt/podman> 47 + <styx/networking/static> 46 48 ]; 47 49 }; 48 50 };
+1 -1
modules/tailscale.nix
··· 1 1 { 2 - den.aspects.tailscale.nixos.services.tailscale = { 2 + styx.tailscale.nixos.services.tailscale = { 3 3 enable = true; 4 4 openFirewall = true; 5 5 };
+3 -3
modules/theming.nix
··· 1 - { den, ... }: 1 + { styx, ... }: 2 2 { 3 - den.aspects.theming = { 4 - includes = [ (den.aspects.theming._.catppuccin "mocha" "pink") ]; 3 + styx.theming = { 4 + includes = [ (styx.theming._.catppuccin "mocha" "pink") ]; 5 5 nixos = 6 6 { pkgs, ... }: 7 7 {
+3 -3
modules/toplevel/networking.nix
··· 1 1 { 2 - den = { 3 - default.nixos = { 2 + styx.aspects.networking = { 3 + provides.static.nixos.networking.tempAddresses = "disabled"; 4 + nixos = { 4 5 networking = { 5 6 nftables.enable = true; 6 7 wireguard.enable = true; ··· 10 11 systemd.services.NetworkManager-wait-online.enable = false; 11 12 systemd.network.wait-online.enable = false; 12 13 }; 13 - aspects.server.nixos.networking.tempAddresses = "disabled"; 14 14 }; 15 15 }
+1 -1
modules/toplevel/udev.nix
··· 1 1 { 2 2 # lowest DPI of vertical mouse is 1200 for some reason 3 - den.aspects.udev.nixos.services.udev.extraRules = '' 3 + styx.udev.nixos.services.udev.extraRules = '' 4 4 ENV{ID_VENDOR_ID}=="248a", ENV{ID_MODEL_ID}=="8589", ENV{LIBINPUT_CALIBRATION_MATRIX}="0.5 0 0 0 0.5 0 0 0 1" 5 5 SUBSYSTEM=="hidraw", ATTRS{idVendor}=="36a7", TAG+="uaccess" 6 6 '';
+8 -8
modules/toplevel/virtualisation.nix
··· 1 - {den,...}: 1 + { den, styx, ... }: 2 2 { 3 - den.aspects.virt.provides = { 3 + styx.virt.provides = { 4 4 qemu = { 5 - # includes = [ den.aspects.virt._.qemu._.group ]; 6 - # provides.group = 7 - # { user, ... }: 8 - # { 9 - # nixos.users.users.${user.userName}.extraGroups = [ "kvm" ]; 10 - # }; 5 + # includes = [ styx.virt._.qemu._.group ]; 6 + provides.group = 7 + { user, ... }: 8 + { 9 + nixos.users.users.${user.userName}.extraGroups = [ "kvm" ]; 10 + }; 11 11 nixos = 12 12 { pkgs, ... }: 13 13 {
+16 -18
modules/toplevel/xdg.nix
··· 1 1 { 2 - den = { 3 - default.homeManager = 2 + styx.xdg = { 3 + nixos.xdg.terminal-exec.enable = true; 4 + homeManager = 4 5 { config, ... }: 5 6 { 6 - xdg.enable = true; 7 + xdg = { 8 + enable = true; 9 + autostart.enable = true; 10 + autostart.readOnly = true; 11 + userDirs = { 12 + enable = true; 13 + createDirectories = true; 14 + desktop = null; 15 + templates = null; 16 + music = null; 17 + publicShare = null; 18 + }; 19 + }; 7 20 home.sessionVariables = { 8 21 # cleaning up ~ 9 22 ANDROID_USER_HOME = "${config.xdg.dataHome}/android"; ··· 29 42 _Z_DATA = "${config.xdg.dataHome}/z"; 30 43 }; 31 44 }; 32 - aspects.xdg = { 33 - nixos.xdg.terminal-exec.enable = true; 34 - homeManager.xdg = { 35 - autostart.enable = true; 36 - autostart.readOnly = true; 37 - userDirs = { 38 - enable = true; 39 - createDirectories = true; 40 - desktop = null; 41 - templates = null; 42 - music = null; 43 - publicShare = null; 44 - }; 45 - }; 46 - }; 47 45 }; 48 46 }
+9 -6
modules/users.nix
··· 1 - { den, ... }: 1 + { den, styx, ... }: 2 2 { 3 3 den.aspects.quasi = { 4 - includes = [ den.provides.primary-user den.provides.primary-user ]; 4 + includes = [ 5 + den.provides.primary-user 6 + styx.groups 7 + ]; 5 8 homeManager.services.ssh-agent.enable = true; 6 9 }; 7 - den.aspects.groups = 10 + styx.groups = 8 11 { user, ... }: 9 12 { 10 13 nixos.users = { 11 - groups.${user.username} = { }; 12 - users.${user.username} = { 14 + groups.${user.userName} = { }; 15 + users.${user.userName} = { 13 16 isNormalUser = true; 14 - initialPassword = user.username; 17 + initialPassword = user.userName; 15 18 extraGroups = [ 16 19 "wheel" 17 20 "video"
+1 -1
modules/vmvariant.nix
··· 1 1 { 2 - den.default.nixos = 2 + styx.nixos = 3 3 { lib, ... }: 4 4 { 5 5 virtualisation.vmVariant = {
+1 -1
modules/wayland.nix
··· 1 1 { 2 - den.aspects.wayland._.base = 2 + styx.wayland._.base = 3 3 { host, ... }: 4 4 { 5 5 nixos =