From f8f14fa5361940b52d3eb6bc11b4e9d02f90add8 Mon Sep 17 00:00:00 2001 From: winter <149337190+WinterEkisha@users.noreply.github.com> Date: Sun, 8 Nov 2026 17:58:47 -0800 Subject: [PATCH 01/16] wip --- home/Winter/Base.nix | 88 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 home/Winter/Base.nix diff --git a/home/Winter/Base.nix b/home/Winter/Base.nix new file mode 100644 index 0000000..46e7104 --- /dev/null +++ b/home/Winter/Base.nix @@ -0,0 +1,88 @@ +# This is your home-manager configuration file +# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix) +{ + inputs, + lib, + config, + pkgs, + ... +}: +{ + # You can import other home-manager modules here + imports = [ + # If you want to use modules your own flake exports (from modules/home-manager): + # inputs.self.homeManagerModules.example + + # Or modules exported from other flakes (such as nix-colors): + # inputs.nix-colors.homeManagerModules.default + + # You can also split up your configuration and import pieces of it here: + # ./nvim.nix + + ../common/features/niri/niri.nix + ../common/features/spicetify.nix + ../common/features/yazi/yazi.nix + ../common/features/nvimConf.nix + ../common/features/shell.nix + ]; + + nixpkgs = { + # You can add overlays here + overlays = [ + # Add overlays your own flake exports (from overlays and pkgs dir): + inputs.self.overlays.additions + inputs.self.overlays.modifications + inputs.self.overlays.unstable-packages + + # You can also add overlays exported from other flakes: + # neovim-nightly-overlay.overlays.default + + # Or define it inline, for example: + # (final: prev: { + # hi = final.hello.overrideAttrs (oldAttrs: { + # patches = [ ./change-hello-to-hi.patch ]; + # }); + # }) + ]; + # Configure your nixpkgs instance + config = { + # Disable if you don't want unfree packages + allowUnfree = true; + }; + }; + + # --- xdg --- + xdg.mimeApps = { + enable = true; + defaultApplications = { + "inode/directory" = [ "kitty-open.desktop" ]; + "image/jpeg" = [ "org.gnome.gThumb.desktop" ]; + "image/png" = [ "org.gnome.gThumb.desktop" ]; + "image/gif" = [ "org.gnome.gThumb.desktop" ]; + "image/webp" = [ "org.gnome.gThumb.desktop" ]; + "image/tiff" = [ "org.gnome.gThumb.desktop" ]; + "image/bmp" = [ "org.gnome.gThumb.desktop" ]; + }; + }; + + home.packages = with pkgs; [ + # --- General utils --- + libreoffice #Microsoft replace + libresprite #Pixel art + hunspell + hunspellDicts.en_US + obs-studio + shotcut + qutebrowser #web browser + blockbench + ]; + + programs.home-manager.enable = true; + + # --- General utils --- + programs.quickshell.enable = true; + programs.joplin-desktop.enable = true; + + # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion + home.stateVersion = "25.11"; +} From be4e3096da9ea6429d397c27cd963df9982a53c5 Mon Sep 17 00:00:00 2001 From: winter <149337190+WinterEkisha@users.noreply.github.com> Date: Sun, 15 Nov 2026 12:07:43 -0800 Subject: [PATCH 02/16] feat: auto-updates --- hosts/common/global/base.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/hosts/common/global/base.nix b/hosts/common/global/base.nix index dd66312..4f4dc2e 100644 --- a/hosts/common/global/base.nix +++ b/hosts/common/global/base.nix @@ -7,6 +7,11 @@ pkgs, ... }: +let + repoDomain = "thearcticcircle.ddns.net"; + repoPath = "git/WinterEkisha/nix-config"; + repoBranch = "main"; +in { nix = { settings = { @@ -38,6 +43,28 @@ networking.firewall.enable = true; time.timeZone = "America/Los_Angeles"; + + system.autoUpgrade = { + enable = true; + #flake = "git+https://${repoDomain}/${repoPath}?ref=${repoBranch}#${config.networking.hostName}"; #FIXME + flake = "git+https://${repoDomain}/${repoPath}?ref=experimental#${config.networking.hostName}"; + flags = [ + "--refresh" + ]; + dates = "03:00"; + randomizedDelaySec = "30min"; + allowReboot = true; + rebootWindow = { + lower = "02:00"; + upper = "05:00"; + }; + }; + + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; # --- File Manager --- xdg.mime.enable = true; From 973fec46ac84a6aa4fab84bf4309634362bd16c2 Mon Sep 17 00:00:00 2001 From: winter <149337190+WinterEkisha@users.noreply.github.com> Date: Sun, 15 Nov 2026 14:50:23 -0800 Subject: [PATCH 03/16] chore: comment cleanup --- hosts/common/example.nix | 2 +- hosts/common/users/Ekisha/default.nix | 11 +---------- hosts/common/users/Tester/default.nix | 12 +----------- hosts/common/users/Winter/default.nix | 10 ---------- hosts/common/users/example.nix | 11 ----------- 5 files changed, 3 insertions(+), 43 deletions(-) diff --git a/hosts/common/example.nix b/hosts/common/example.nix index c286201..02f5c20 100644 --- a/hosts/common/example.nix +++ b/hosts/common/example.nix @@ -82,5 +82,5 @@ in }; # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion - system.stateVersion = "25.11"; + #system.stateVersion = "25.11"; #FIXME, should be fine to change on a fresh install } diff --git a/hosts/common/users/Ekisha/default.nix b/hosts/common/users/Ekisha/default.nix index a95dbb3..4cc8197 100644 --- a/hosts/common/users/Ekisha/default.nix +++ b/hosts/common/users/Ekisha/default.nix @@ -16,23 +16,14 @@ in { "video" ]; - # TODO: use as needed - #openssh.authorizedKeys.keys = lib.splitString "\n" (builtins.readFile ../../../../home/gabriel/ssh.pub); - #hashedPasswordFile = config.sops.secrets.gabriel-password.path; #packages = [pkgs.home-manager]; }; - # unused for now, may add sops later on - #sops.secrets = { - # gabriel-password = { - # sopsFile = ../../secrets.yaml; - # neededForUsers = true; - # }; - #}; home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix; security.pam.services = { swaylock = {}; + ${username}.enableGnomeKeyring = true; }; } diff --git a/hosts/common/users/Tester/default.nix b/hosts/common/users/Tester/default.nix index a603d05..3ba0b13 100644 --- a/hosts/common/users/Tester/default.nix +++ b/hosts/common/users/Tester/default.nix @@ -12,24 +12,14 @@ in { extraGroups = ifTheyExist [ ]; - # TODO: use as needed - #openssh.authorizedKeys.keys = lib.splitString "\n" (builtins.readFile ../../../../home/gabriel/ssh.pub); - #hashedPasswordFile = config.sops.secrets.gabriel-password.path; #packages = [pkgs.home-manager]; }; - # unused for now, may add sops later on - #sops.secrets = { - # gabriel-password = { - # sopsFile = ../../secrets.yaml; - # neededForUsers = true; - # }; - #}; - # TODO: ensure correct paths home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix; security.pam.services = { swaylock = {}; + ${username}.enableGnomeKeyring = true; }; } diff --git a/hosts/common/users/Winter/default.nix b/hosts/common/users/Winter/default.nix index 0dccaf8..2ef07af 100644 --- a/hosts/common/users/Winter/default.nix +++ b/hosts/common/users/Winter/default.nix @@ -27,19 +27,9 @@ in { "wireshark" ]; - # TODO: use as needed - #openssh.authorizedKeys.keys = lib.splitString "\n" (builtins.readFile ../../../../home/gabriel/ssh.pub); - #hashedPasswordFile = config.sops.secrets.gabriel-password.path; #packages = [pkgs.home-manager]; }; - # unused for now, may add sops later on - #sops.secrets = { - # gabriel-password = { - # sopsFile = ../../secrets.yaml; - # neededForUsers = true; - # }; - #}; home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix; diff --git a/hosts/common/users/example.nix b/hosts/common/users/example.nix index 4b12017..f0eb068 100644 --- a/hosts/common/users/example.nix +++ b/hosts/common/users/example.nix @@ -27,21 +27,10 @@ in { "wireshark" ]; - # TODO: use as needed - #openssh.authorizedKeys.keys = lib.splitString "\n" (builtins.readFile ../../../../home/gabriel/ssh.pub); - #hashedPasswordFile = config.sops.secrets.gabriel-password.path; #packages = [pkgs.home-manager]; }; - # unused for now, may add sops later on - #sops.secrets = { - # gabriel-password = { - # sopsFile = ../../secrets.yaml; - # neededForUsers = true; - # }; - #}; -# TODO: ensure correct paths home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix; security.pam.services = { From 4f5f3322e4531a5af81ea3076871ffeabf79b33f Mon Sep 17 00:00:00 2001 From: winter <149337190+WinterEkisha@users.noreply.github.com> Date: Sun, 15 Nov 2026 15:58:33 -0800 Subject: [PATCH 04/16] feat+refactor: pkgs added way to choose which package channel to download from --- flake.lock | 16 +++++++------- flake.nix | 4 ++-- home/Winter/Base.nix | 1 - home/Winter/WarNyx.nix | 26 +++++++++++++---------- home/common/features/qutebrowser.nix | 9 -------- home/common/features/shell.nix | 17 +++++++++------ home/common/features/yazi/yazi.nix | 1 + hosts/common/features/DesktopNiri.nix | 30 +++++++++++++++++---------- hosts/common/global/base.nix | 12 +++++------ 9 files changed, 62 insertions(+), 54 deletions(-) delete mode 100644 home/common/features/qutebrowser.nix diff --git a/flake.lock b/flake.lock index fa854ea..4bdb846 100644 --- a/flake.lock +++ b/flake.lock @@ -64,16 +64,16 @@ ] }, "locked": { - "lastModified": 1779506708, - "narHash": "sha256-QOD/CNm196nCJRheux/URi4/HE66fthdOMqCJoPP1Y0=", + "lastModified": 1794251182, + "narHash": "sha256-R2sZBXiOJo3HAnvTiVkbbHDJy//JMlAwUKEiPbfqPXk=", "owner": "nix-community", "repo": "home-manager", - "rev": "3ee51fbdac8c8bdfe1e7e1fcaba6520a563f394f", + "rev": "6eb2d33d1d0c95a37ef6443c88e6c1686012ee8b", "type": "github" }, "original": { "owner": "nix-community", - "ref": "release-25.11", + "ref": "release-26.05", "repo": "home-manager", "type": "github" } @@ -128,16 +128,16 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1782847189, - "narHash": "sha256-twXPFqFsrrY5r28Zh7Homgcp2gUMBgQ6WDS98Q/3xFI=", + "lastModified": 1794552581, + "narHash": "sha256-qXFIqA6FCcx7XeDzw0ZNlkDT9UiCzrNDwK8RuU8RcHM=", "owner": "nixos", "repo": "nixpkgs", - "rev": "b6018f87da91d19d0ab4cf979885689b469cdd41", + "rev": "f1e5c356f35d07e7b71a6b5e6c9338e0b029e0c0", "type": "github" }, "original": { "owner": "nixos", - "ref": "nixos-25.11", + "ref": "nixos-26.05", "repo": "nixpkgs", "type": "github" } diff --git a/flake.nix b/flake.nix index 7979cf3..39cdf49 100644 --- a/flake.nix +++ b/flake.nix @@ -3,14 +3,14 @@ inputs = { # Nixpkgs - nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11"; + nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05"; # You can access packages and modules from different nixpkgs revs # at the same time. Here's an working example: nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; # Also see the 'unstable-packages' overlay at 'overlays/default.nix'. # Home manager - home-manager.url = "github:nix-community/home-manager/release-25.11"; + home-manager.url = "github:nix-community/home-manager/release-26.05"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; # Utils diff --git a/home/Winter/Base.nix b/home/Winter/Base.nix index 46e7104..0b2ed27 100644 --- a/home/Winter/Base.nix +++ b/home/Winter/Base.nix @@ -73,7 +73,6 @@ hunspellDicts.en_US obs-studio shotcut - qutebrowser #web browser blockbench ]; diff --git a/home/Winter/WarNyx.nix b/home/Winter/WarNyx.nix index 641bd75..735b570 100644 --- a/home/Winter/WarNyx.nix +++ b/home/Winter/WarNyx.nix @@ -68,17 +68,21 @@ in }; }; - home.packages = with pkgs; [ - # --- General utils --- - libreoffice #Microsoft replace - libresprite #Pixel art - hunspell - hunspellDicts.en_US - obs-studio - shotcut - qutebrowser #web browser - blockbench - ]; + home.packages = ( + (with pkgs; [ + # --- General utils --- + libreoffice # Microsoft replace + hunspell + hunspellDicts.en_US + ]) + ++ (with pkgs.unstablePkgs; [ + # --- Creative utils --- + obs-studio + shotcut + blockbench + libresprite # Pixel art + ]) + ); home = { username = username; diff --git a/home/common/features/qutebrowser.nix b/home/common/features/qutebrowser.nix deleted file mode 100644 index fd10ddf..0000000 --- a/home/common/features/qutebrowser.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ - inputs, - config, - ... -}: { - programs.qutebrowser = { - enable = true; - }; -} diff --git a/home/common/features/shell.nix b/home/common/features/shell.nix index 6753140..8974332 100644 --- a/home/common/features/shell.nix +++ b/home/common/features/shell.nix @@ -7,12 +7,17 @@ pkgs, ... }: { - home.packages = with pkgs; [ - # --- CLI utils --- - wl-clipboard - clipse - timg - ]; + home.packages = ( + (with pkgs; [ + # --- Core Wayland plumbing (Stable 26.05) --- + wl-clipboard + ]) + ++ (with pkgs.unstablePkgs; [ + # --- Fast-moving CLI utils (Unstable) --- + clipse + timg + ]) + ); # --- Shell environment --- programs.direnv.enable = true; home.shellAliases = { diff --git a/home/common/features/yazi/yazi.nix b/home/common/features/yazi/yazi.nix index 4e7be9f..180cbb6 100644 --- a/home/common/features/yazi/yazi.nix +++ b/home/common/features/yazi/yazi.nix @@ -1,5 +1,6 @@ { programs.yazi = { + shellWrapperName = "y"; enable = true; flavors = { diff --git a/hosts/common/features/DesktopNiri.nix b/hosts/common/features/DesktopNiri.nix index 110d53b..83b6ac7 100644 --- a/hosts/common/features/DesktopNiri.nix +++ b/hosts/common/features/DesktopNiri.nix @@ -17,15 +17,23 @@ services.blueman.enable = true; #bluetooth - environment.systemPackages = with pkgs; [ - # -- Niri extras -- - xwayland-satellite - fuzzel - waybar - brightnessctl - playerctl - swaylock - inputs.awww.packages.${pkgs.stdenv.hostPlatform.system}.awww - inputs.skwd-wall.packages.${pkgs.stdenv.hostPlatform.system}.default - ]; + environment.systemPackages = ( + (with pkgs; [ + # -- Stable system utilities -- + brightnessctl + playerctl + swaylock + ]) + ++ (with pkgs.unstablePkgs; [ + # -- Fast-moving Wayland tools -- + xwayland-satellite + fuzzel + waybar + ]) + ++ [ + # -- External flake inputs -- + inputs.awww.packages.${pkgs.stdenv.hostPlatform.system}.awww + inputs.skwd-wall.packages.${pkgs.stdenv.hostPlatform.system}.default + ] + ); } diff --git a/hosts/common/global/base.nix b/hosts/common/global/base.nix index 4f4dc2e..0e2985d 100644 --- a/hosts/common/global/base.nix +++ b/hosts/common/global/base.nix @@ -29,12 +29,12 @@ in boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - systemd.sleep.extraConfig = '' - AllowSuspend=no - AllowHibernation=no - AllowHybridSleep=no - AllowSuspendThenHibernate=no - ''; + systemd.sleep.settings.Sleep = { + AllowSuspend = "no"; + AllowHibernation = "no"; + AllowHybridSleep = "no"; + AllowSuspendThenHibernate = "no"; + }; systemd.tmpfiles.rules = [ "d /home/shared 0777 root root -" From 3796bd26c66a3e4fbf159aae74541c820d92384a Mon Sep 17 00:00:00 2001 From: winter <149337190+WinterEkisha@users.noreply.github.com> Date: Sun, 15 Nov 2026 16:55:34 -0800 Subject: [PATCH 05/16] feat: niri keybind sway lock + sileneces lights and sounds --- home/common/features/niri/config.kdl | 2 ++ home/common/features/niri/niri.nix | 36 +++++++++++++++++++++++++--- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/home/common/features/niri/config.kdl b/home/common/features/niri/config.kdl index 9507025..75969e4 100644 --- a/home/common/features/niri/config.kdl +++ b/home/common/features/niri/config.kdl @@ -402,6 +402,8 @@ binds { Mod+T hotkey-overlay-title="Open a Terminal: kitty" { spawn "kitty"; } Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; } Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; } + Super+Alt+Ctrl+L hotkey-overlay-title="Lock N turn off screen" { spawn "lockNTurnOffScreen"; } + //Skwd-wall -- doesnt work, works with fuzzel Mod+W hotkey-overlay-title="Skwd-wall" { spawn "skwd-wall-v2"; } //clipse diff --git a/home/common/features/niri/niri.nix b/home/common/features/niri/niri.nix index 98659c1..78ed40d 100644 --- a/home/common/features/niri/niri.nix +++ b/home/common/features/niri/niri.nix @@ -1,12 +1,42 @@ { config, pkgs, ... }: +let + lockNTurnOffScript = pkgs.writeShellApplication { + name = "lockNTurnOffScreen"; + runtimeInputs = with pkgs; [ + wireplumber # provides wpctl + swaylock + niri + ]; + text = '' + # Check if already muted so we don't accidentally unmute a manually muted system + WAS_MUTED=false + if wpctl get-volume @DEFAULT_AUDIO_SINK@ | grep -q '\[MUTED\]'; then + WAS_MUTED=true + fi + + # Mute audio and power off monitors + wpctl set-mute @DEFAULT_AUDIO_SINK@ 1 + niri msg action power-off-monitors + + # Run swaylock in the foreground (blocks until unlocked) + swaylock + + # Restore mute state upon unlock + if [ "$WAS_MUTED" = false ]; then + wpctl set-mute @DEFAULT_AUDIO_SINK@ 0 + fi + ''; + }; +in { xdg.configFile."niri/config.kdl".source = ./config.kdl; # --- Niri-Extras --- programs.fuzzel.enable = true; xdg.mime.enable = true; services.playerctld.enable = true; -# home.packages = with pkgs; [ -# mako -# ]; + home.packages = with pkgs; [ + #mako + lockNTurnOffScript + ]; } From 6bb20a8f295c5be1cd35ded8cdca3be997aab34e Mon Sep 17 00:00:00 2001 From: winter <149337190+WinterEkisha@users.noreply.github.com> Date: Mon, 16 Nov 2026 15:54:08 -0800 Subject: [PATCH 06/16] feat: shareability note: need to refactor further --- home/Ricky/dev/Ricky.nix | 68 ++++++++++++++++++++ hosts/Ricky/configuration.nix | 87 ++++++++++++++++++++++++++ hosts/Ricky/hardware-configuration.nix | 31 +++++++++ hosts/common/users/dev/default.nix | 39 ++++++++++++ 4 files changed, 225 insertions(+) create mode 100644 home/Ricky/dev/Ricky.nix create mode 100644 hosts/Ricky/configuration.nix create mode 100644 hosts/Ricky/hardware-configuration.nix create mode 100644 hosts/common/users/dev/default.nix diff --git a/home/Ricky/dev/Ricky.nix b/home/Ricky/dev/Ricky.nix new file mode 100644 index 0000000..8823a5e --- /dev/null +++ b/home/Ricky/dev/Ricky.nix @@ -0,0 +1,68 @@ +# This is your home-manager configuration file +# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix) +{ + inputs, + lib, + config, + pkgs, + ... +}: +let + username = "dev"; +in +{ + # You can import other home-manager modules here + imports = [ + # If you want to use modules your own flake exports (from modules/home-manager): + # inputs.self.homeManagerModules.example + + # Or modules exported from other flakes (such as nix-colors): + # inputs.nix-colors.homeManagerModules.default + + # You can also split up your configuration and import pieces of it here: + # ./nvim.nix + + #../common/features/niri/niri.nix + #../common/features/spicetify.nix + #../common/features/yazi/yazi.nix + #../common/features/nvimConf.nix + #../common/features/shell.nix + ]; + + nixpkgs = { + # You can add overlays here + overlays = [ + # Add overlays your own flake exports (from overlays and pkgs dir): + inputs.self.overlays.additions + inputs.self.overlays.modifications + inputs.self.overlays.unstable-packages + + # You can also add overlays exported from other flakes: + # neovim-nightly-overlay.overlays.default + + # Or define it inline, for example: + # (final: prev: { + # hi = final.hello.overrideAttrs (oldAttrs: { + # patches = [ ./change-hello-to-hi.patch ]; + # }); + # }) + ]; + # Configure your nixpkgs instance + config = { + # Disable if you don't want unfree packages + allowUnfree = true; + }; + }; + + home.packages = with pkgs; [ + ]; + + home = { + username = username; + homeDirectory = "/home/${username}"; + }; + programs.home-manager.enable = true; + + # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion + home.stateVersion = "25.11"; +} diff --git a/hosts/Ricky/configuration.nix b/hosts/Ricky/configuration.nix new file mode 100644 index 0000000..d0685a3 --- /dev/null +++ b/hosts/Ricky/configuration.nix @@ -0,0 +1,87 @@ +# This is your system's configuration file. +# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix) +{ + inputs, + lib, + config, + pkgs, + ... +}: +let + hostname = "Ricky"; +in +{ + # You can import other NixOS modules here + imports = [ + # If you want to use modules your own flake exports (from modules/nixos): + # inputs.self.nixosModules.example + + # Or modules from other flakes (such as nixos-hardware): + # inputs.hardware.nixosModules.common-cpu-amd + # inputs.hardware.nixosModules.common-ssd + + ./hardware-configuration.nix + + #../common/users/Winter/default.nix + ../common/users/dev/default.nix + #../common/global/default.nix + ../common/features/DesktopNiri.nix + #../common/features/Applications.nix + #../common/features/servers/minecraft.nix + + inputs.home-manager.nixosModules.home-manager + ]; + + nixpkgs = { + # You can add overlays here + overlays = [ + # Add overlays your own flake exports (from overlays and pkgs dir): + inputs.self.overlays.additions + inputs.self.overlays.modifications + inputs.self.overlays.unstable-packages + + # You can also add overlays exported from other flakes: + # neovim-nightly-overlay.overlays.default + + # Or define it inline, for example: + # (final: prev: { + # hi = final.hello.overrideAttrs (oldAttrs: { + # patches = [ ./change-hello-to-hi.patch ]; + # }); + # }) + ]; + # Configure your nixpkgs instance + config = { + # Disable if you don't want unfree packages + allowUnfree = true; + }; + }; + + # build home-manager with nixos-rebuild and not home-manager command + home-manager = { + extraSpecialArgs = { inherit inputs; }; + backupFileExtension = "backup"; + users = { + dev = import ../../home/Ricky/dev/${hostname}.nix; + }; + }; + + environment.systemPackages = with pkgs; [ + ]; + + networking.hostName = hostname; + + # This setups a SSH server. Very important if you're setting up a headless system. + # Feel free to remove if you don't need it. + #Unused, keeping for later reference + services.openssh = { + enable = false; + settings = { + PermitRootLogin = "no"; + PasswordAuthentication = false; + }; + }; + + # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion + system.stateVersion = "25.11"; +} diff --git a/hosts/Ricky/hardware-configuration.nix b/hosts/Ricky/hardware-configuration.nix new file mode 100644 index 0000000..565bda1 --- /dev/null +++ b/hosts/Ricky/hardware-configuration.nix @@ -0,0 +1,31 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/37e1fcd1-4321-4010-81f7-a3c1443d2a2d"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/AF44-E292"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/hosts/common/users/dev/default.nix b/hosts/common/users/dev/default.nix new file mode 100644 index 0000000..39103ad --- /dev/null +++ b/hosts/common/users/dev/default.nix @@ -0,0 +1,39 @@ +{ + pkgs, + config, + lib, + ... +}: let + username = "dev"; + ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups; +in { + users.users.${username} = { + isNormalUser = true; + extraGroups = ifTheyExist [ + "audio" + "deluge" + "docker" + "git" + "i2c" + "libvirtd" + "minecraft" + "mysql" + "wpa_supplicant" + "plugdev" + "podman" + "tss" + "video" + "wheel" + "wireshark" + ]; + + }; + +# TODO: ensure correct paths + home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix; + + security.pam.services = { + swaylock = {}; + ${username}.enableGnomeKeyring = true; + }; +} From 500c18d8a97c9d9dae1c1ad3455907d045da068e Mon Sep 17 00:00:00 2001 From: winter <149337190+WinterEkisha@users.noreply.github.com> Date: Mon, 16 Nov 2026 22:19:21 -0800 Subject: [PATCH 07/16] feat: ssh --- flake.lock | 44 +++++++++++++++++----------------- hosts/WarNyx/configuration.nix | 2 +- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/flake.lock b/flake.lock index 4bdb846..89b3dbd 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ "rust-overlay": "rust-overlay" }, "locked": { - "lastModified": 1784030954, - "narHash": "sha256-MPMVSBhSEl+ShSrWVN5qH3FiX2gg8LbYA8L3nuQw5VE=", + "lastModified": 1794571619, + "narHash": "sha256-QYZwkbLVTRjnIy6cQh5qznKOgrBsxA1SK5jgq+KaBBc=", "ref": "refs/heads/main", - "rev": "25ea4fd7a42359379da9ddadedda1c477caa4ae0", - "revCount": 1376, + "rev": "1240df7bd17323d626c94fb50b8ed5a02a185a75", + "revCount": 1384, "type": "git", "url": "https://codeberg.org/LGFae/awww" }, @@ -44,11 +44,11 @@ ] }, "locked": { - "lastModified": 1790898470, - "narHash": "sha256-zTwuwezD0w3hpga6a6P8emidzAZFyWqlNeRBlpWOOl8=", + "lastModified": 1793576659, + "narHash": "sha256-V1h85lUaJBQoHFrB2vpXZOE0Ju1MYSnIpsehoVZYlDo=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "024633cd702b10285db5cb19b40ad48d2399ba60", + "rev": "ea2630b7470978622c7689a1ff75d2b389175399", "type": "github" }, "original": { @@ -112,11 +112,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1793876309, - "narHash": "sha256-Wojg9lIH/hDH91iDVH2/EPw8oDSpxjxhXONbU1yf4Zg=", + "lastModified": 1794537146, + "narHash": "sha256-Wpz/7x/YWnDIBu7yj6ixe8j6fIMsidd9Y+o1PqPF3iM=", "owner": "nixos", "repo": "nixpkgs", - "rev": "f9a75f41be3a74eab55d3a7679d34ad6cc0da977", + "rev": "d5cc6833999746cffdfe0598f7bc801a57b887a9", "type": "github" }, "original": { @@ -144,11 +144,11 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1791487292, - "narHash": "sha256-tqM7xDEsaeK1p6VvRygeZ9LkQRpUUkbRT02BHv6hnTM=", + "lastModified": 1793977579, + "narHash": "sha256-WrSODdZFVIs/Hh2NzC0bY+ROByi0bATg8WfePX8dPj8=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "8edc0c72e3a38faf5434e40d1f19431125fe4b30", + "rev": "4fe25e12eb9f4c744966dd3de5a05246cf098601", "type": "github" }, "original": { @@ -194,11 +194,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1792203519, - "narHash": "sha256-yJ072hxngo/srNdLTp4BlFeo0hedwnKicI3TGlSXLFE=", + "lastModified": 1794408140, + "narHash": "sha256-vS4BTt6CkLn2BLcYA7kZUxFNnZpPgW0GJ73s/VoPhWc=", "owner": "nix-community", "repo": "nixvim", - "rev": "453dc9c5037e6d1bec81d2a51ddacd58a2f44e9c", + "rev": "44849d3d24b28d59fa963bd832ec59c60c56a34c", "type": "github" }, "original": { @@ -212,11 +212,11 @@ "nixpkgs": "nixpkgs_4" }, "locked": { - "lastModified": 1792102655, - "narHash": "sha256-o8q1FyTfInU5jv+78iqkNuItaQ9aIyTAbUfv3YbFGms=", + "lastModified": 1792102657, + "narHash": "sha256-iXWuCKOidcaAEg6sbnJRGrNfEPjNkcDYmoiW+YJZ74g=", "owner": "liixini", "repo": "skwd-wall", - "rev": "3bd7d5763a13984cc5a2be0e8a19e9df2805ed88", + "rev": "3f80b1922aa6674065970dc6b78fc948960e84d5", "type": "github" }, "original": { @@ -264,11 +264,11 @@ "release": "release" }, "locked": { - "lastModified": 1793916584, - "narHash": "sha256-u2IEi1owjJ/zJvNW2WGHNoZGq+XrgFf2GAbNJ5AI6Nw=", + "lastModified": 1794554060, + "narHash": "sha256-rPFghMPcQlGU33sbd919wn1k5+1lP6Khj4Q2Xeh75Q8=", "owner": "liixini", "repo": "skwd-wall", - "rev": "3dfdc7fa88ad3c0ffd735b7f9b9c1bcd2ae80b06", + "rev": "04344fc867f52d5a124d6ac8acad5ad984b91700", "type": "github" }, "original": { diff --git a/hosts/WarNyx/configuration.nix b/hosts/WarNyx/configuration.nix index 4e02feb..85df60b 100644 --- a/hosts/WarNyx/configuration.nix +++ b/hosts/WarNyx/configuration.nix @@ -94,7 +94,7 @@ in # Feel free to remove if you don't need it. #Unused, keeping for later reference services.openssh = { - enable = false; + enable = true; settings = { PermitRootLogin = "no"; PasswordAuthentication = false; From 03d7b5569d8b57d539eddfe4c479aefc961be580 Mon Sep 17 00:00:00 2001 From: winter <149337190+WinterEkisha@users.noreply.github.com> Date: Mon, 16 Nov 2026 22:48:19 -0800 Subject: [PATCH 08/16] refactor: home/Winter, home/common home/Winter/ -> home/Winter/Winter/ home/common/ -> home/Winter/common/ --- home/Ekisha/WarNyx.nix | 94 ------------------ home/Winter/Base.nix | 39 ++++---- home/Winter/Ekisha/WarNyx.nix | 67 +++++++++++++ home/{ => Winter}/Tester/WarNyx.nix | 42 ++------ home/Winter/{ => Winter}/Reconix.nix | 36 ++----- home/Winter/{ => Winter}/WarNyx.nix | 36 +------ home/Winter/{ => Winter}/minecraft.nix | 23 +++-- home/{ => Winter}/common/example.nix | 17 ++-- .../common/features/niri/config.kdl | 0 .../common/features/niri/niri.nix | 0 .../{ => Winter}/common/features/nvimConf.nix | 0 home/{ => Winter}/common/features/shell.nix | 0 .../common/features/spicetify.nix | 0 .../features/yazi/catppuccin-frappe/README.md | 0 .../yazi/catppuccin-frappe/flavor.toml | 0 .../yazi/catppuccin-frappe/preview.png | Bin .../yazi/catppuccin-frappe/tmtheme.xml | 0 .../common/features/yazi/yazi.nix | 0 18 files changed, 131 insertions(+), 223 deletions(-) delete mode 100644 home/Ekisha/WarNyx.nix create mode 100644 home/Winter/Ekisha/WarNyx.nix rename home/{ => Winter}/Tester/WarNyx.nix (61%) rename home/Winter/{ => Winter}/Reconix.nix (69%) rename home/Winter/{ => Winter}/WarNyx.nix (61%) rename home/Winter/{ => Winter}/minecraft.nix (72%) rename home/{ => Winter}/common/example.nix (84%) rename home/{ => Winter}/common/features/niri/config.kdl (100%) rename home/{ => Winter}/common/features/niri/niri.nix (100%) rename home/{ => Winter}/common/features/nvimConf.nix (100%) rename home/{ => Winter}/common/features/shell.nix (100%) rename home/{ => Winter}/common/features/spicetify.nix (100%) rename home/{ => Winter}/common/features/yazi/catppuccin-frappe/README.md (100%) rename home/{ => Winter}/common/features/yazi/catppuccin-frappe/flavor.toml (100%) rename home/{ => Winter}/common/features/yazi/catppuccin-frappe/preview.png (100%) rename home/{ => Winter}/common/features/yazi/catppuccin-frappe/tmtheme.xml (100%) rename home/{ => Winter}/common/features/yazi/yazi.nix (100%) diff --git a/home/Ekisha/WarNyx.nix b/home/Ekisha/WarNyx.nix deleted file mode 100644 index e0f845a..0000000 --- a/home/Ekisha/WarNyx.nix +++ /dev/null @@ -1,94 +0,0 @@ -# This is your home-manager configuration file -# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix) -{ - inputs, - lib, - config, - pkgs, - ... -}: -let - username = "Ekisha"; -in -{ - # You can import other home-manager modules here - imports = [ - # If you want to use modules your own flake exports (from modules/home-manager): - # inputs.self.homeManagerModules.example - - # Or modules exported from other flakes (such as nix-colors): - # inputs.nix-colors.homeManagerModules.default - - # You can also split up your configuration and import pieces of it here: - # ./nvim.nix - - #../common/features/niri/niri.nix - ../common/features/spicetify.nix - ../common/features/yazi/yazi.nix - ../common/features/nvimConf.nix - ../common/features/shell.nix - ]; - - nixpkgs = { - # You can add overlays here - overlays = [ - # Add overlays your own flake exports (from overlays and pkgs dir): - inputs.self.overlays.additions - inputs.self.overlays.modifications - inputs.self.overlays.unstable-packages - - # You can also add overlays exported from other flakes: - # neovim-nightly-overlay.overlays.default - - # Or define it inline, for example: - # (final: prev: { - # hi = final.hello.overrideAttrs (oldAttrs: { - # patches = [ ./change-hello-to-hi.patch ]; - # }); - # }) - ]; - # Configure your nixpkgs instance - config = { - # Disable if you don't want unfree packages - allowUnfree = true; - }; - }; - - # --- xdg --- - #xdg.mimeApps = { - # enable = true; - # defaultApplications = { - # "inode/directory" = [ "kitty-open.desktop" ]; - # "image/jpeg" = [ "org.gnome.gThumb.desktop" ]; - # "image/png" = [ "org.gnome.gThumb.desktop" ]; - # "image/gif" = [ "org.gnome.gThumb.desktop" ]; - # "image/webp" = [ "org.gnome.gThumb.desktop" ]; - # "image/tiff" = [ "org.gnome.gThumb.desktop" ]; - # "image/bmp" = [ "org.gnome.gThumb.desktop" ]; - # }; - #}; - - home.packages = with pkgs; [ - # --- General utils --- - libreoffice - libresprite - hunspell - hunspellDicts.en_US - rose-pine-cursor # TODO: ensure change cursor - ]; - - home = { - username = username; - homeDirectory = "/home/${username}"; - }; - programs.home-manager.enable = true; - - # --- General utils --- - programs.quickshell.enable = true; - programs.obsidian = { - enable = true; - }; - - # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion - home.stateVersion = "25.11"; -} diff --git a/home/Winter/Base.nix b/home/Winter/Base.nix index 0b2ed27..a50671d 100644 --- a/home/Winter/Base.nix +++ b/home/Winter/Base.nix @@ -6,7 +6,7 @@ config, pkgs, ... -}: +}: { # You can import other home-manager modules here imports = [ @@ -51,6 +51,27 @@ }; }; + home.packages = ( + (with pkgs; [ + # --- General utils --- + libreoffice # Microsoft replace + hunspell + hunspellDicts.en_US + ]) + ++ (with pkgs.unstablePkgs; [ + # --- Creative utils --- + obs-studio + shotcut + blockbench + libresprite # Pixel art + ]) + ); + + programs.home-manager.enable = true; + # --- General utils --- + programs.quickshell.enable = true; + programs.joplin-desktop.enable = true; + # --- xdg --- xdg.mimeApps = { enable = true; @@ -65,22 +86,6 @@ }; }; - home.packages = with pkgs; [ - # --- General utils --- - libreoffice #Microsoft replace - libresprite #Pixel art - hunspell - hunspellDicts.en_US - obs-studio - shotcut - blockbench - ]; - - programs.home-manager.enable = true; - - # --- General utils --- - programs.quickshell.enable = true; - programs.joplin-desktop.enable = true; # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion home.stateVersion = "25.11"; diff --git a/home/Winter/Ekisha/WarNyx.nix b/home/Winter/Ekisha/WarNyx.nix new file mode 100644 index 0000000..9226427 --- /dev/null +++ b/home/Winter/Ekisha/WarNyx.nix @@ -0,0 +1,67 @@ +# This is your home-manager configuration file +# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix) +{ + inputs, + lib, + config, + pkgs, + ... +}: +let + username = "Ekisha"; +in +{ + # You can import other home-manager modules here + imports = [ + # If you want to use modules your own flake exports (from modules/home-manager): + # inputs.self.homeManagerModules.example + + # Or modules exported from other flakes (such as nix-colors): + # inputs.nix-colors.homeManagerModules.default + + # You can also split up your configuration and import pieces of it here: + # ./nvim.nix + + ../Base.nix + ]; + + nixpkgs = { + # You can add overlays here + overlays = [ + # Add overlays your own flake exports (from overlays and pkgs dir): + inputs.self.overlays.additions + inputs.self.overlays.modifications + inputs.self.overlays.unstable-packages + + # You can also add overlays exported from other flakes: + # neovim-nightly-overlay.overlays.default + + # Or define it inline, for example: + # (final: prev: { + # hi = final.hello.overrideAttrs (oldAttrs: { + # patches = [ ./change-hello-to-hi.patch ]; + # }); + # }) + ]; + # Configure your nixpkgs instance + config = { + # Disable if you don't want unfree packages + allowUnfree = true; + }; + }; + + home.packages = ( + (with pkgs; [ + ]) + ++ (with pkgs.unstablePkgs; [ + ]) + ); + + home = { + username = username; + homeDirectory = "/home/${username}"; + }; + + # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion + home.stateVersion = "25.11"; +} diff --git a/home/Tester/WarNyx.nix b/home/Winter/Tester/WarNyx.nix similarity index 61% rename from home/Tester/WarNyx.nix rename to home/Winter/Tester/WarNyx.nix index 620e812..0378963 100644 --- a/home/Tester/WarNyx.nix +++ b/home/Winter/Tester/WarNyx.nix @@ -6,7 +6,7 @@ config, pkgs, ... -}: +}: let username = "Tester"; in @@ -22,11 +22,7 @@ in # You can also split up your configuration and import pieces of it here: # ./nvim.nix - ../common/features/niri/niri.nix - ../common/features/spicetify.nix - ../common/features/yazi/yazi.nix - ../common/features/nvimConf.nix - ../common/features/shell.nix + ../Base.nix ]; nixpkgs = { @@ -54,39 +50,17 @@ in }; }; - # --- xdg --- - xdg.mimeApps = { - enable = true; - defaultApplications = { - "inode/directory" = [ "kitty-open.desktop" ]; - "image/jpeg" = [ "org.gnome.gThumb.desktop" ]; - "image/png" = [ "org.gnome.gThumb.desktop" ]; - "image/gif" = [ "org.gnome.gThumb.desktop" ]; - "image/webp" = [ "org.gnome.gThumb.desktop" ]; - "image/tiff" = [ "org.gnome.gThumb.desktop" ]; - "image/bmp" = [ "org.gnome.gThumb.desktop" ]; - }; - }; - - home.packages = with pkgs; [ - # --- General utils --- - libreoffice - libresprite - hunspell - hunspellDicts.en_US - obs-studio - shotcut - ]; + home.packages = ( + (with pkgs; [ + ]) + ++ (with pkgs.unstablePkgs; [ + ]) + ); home = { username = username; homeDirectory = "/home/${username}"; }; - programs.home-manager.enable = true; - - # --- General utils --- - programs.quickshell.enable = true; - programs.joplin-desktop.enable = true; # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion home.stateVersion = "25.11"; diff --git a/home/Winter/Reconix.nix b/home/Winter/Winter/Reconix.nix similarity index 69% rename from home/Winter/Reconix.nix rename to home/Winter/Winter/Reconix.nix index a235355..d9d2721 100644 --- a/home/Winter/Reconix.nix +++ b/home/Winter/Winter/Reconix.nix @@ -6,7 +6,7 @@ config, pkgs, ... -}: +}: let username = "Winter"; in @@ -22,11 +22,7 @@ in # You can also split up your configuration and import pieces of it here: # ./nvim.nix - ../common/features/niri/niri.nix - ../common/features/spicetify.nix - ../common/features/yazi/yazi.nix - ../common/features/nvimConf.nix - ../common/features/shell.nix + ../Base.nix ]; nixpkgs = { @@ -53,34 +49,18 @@ in allowUnfree = true; }; }; - # --- xdg --- - xdg.mimeApps = { - enable = true; - defaultApplications = { - "inode/directory" = [ "kitty-open.desktop" ]; - }; - }; - home.packages = with pkgs; [ - # --- General utils --- - libreoffice - libresprite - hunspell - hunspellDicts.en_US - rose-pine-cursor # TODO: ensure change cursor - ]; + home.packages = ( + (with pkgs; [ + ]) + ++ (with pkgs.unstablePkgs; [ + ]) + ); home = { username = username; homeDirectory = "/home/${username}"; }; - programs.home-manager.enable = true; - - # --- General utils --- - programs.quickshell.enable = true; - programs.obsidian = { - enable = true; - }; # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion home.stateVersion = "25.11"; diff --git a/home/Winter/WarNyx.nix b/home/Winter/Winter/WarNyx.nix similarity index 61% rename from home/Winter/WarNyx.nix rename to home/Winter/Winter/WarNyx.nix index 735b570..d9d2721 100644 --- a/home/Winter/WarNyx.nix +++ b/home/Winter/Winter/WarNyx.nix @@ -6,7 +6,7 @@ config, pkgs, ... -}: +}: let username = "Winter"; in @@ -22,11 +22,7 @@ in # You can also split up your configuration and import pieces of it here: # ./nvim.nix - ../common/features/niri/niri.nix - ../common/features/spicetify.nix - ../common/features/yazi/yazi.nix - ../common/features/nvimConf.nix - ../common/features/shell.nix + ../Base.nix ]; nixpkgs = { @@ -54,33 +50,10 @@ in }; }; - # --- xdg --- - xdg.mimeApps = { - enable = true; - defaultApplications = { - "inode/directory" = [ "kitty-open.desktop" ]; - "image/jpeg" = [ "org.gnome.gThumb.desktop" ]; - "image/png" = [ "org.gnome.gThumb.desktop" ]; - "image/gif" = [ "org.gnome.gThumb.desktop" ]; - "image/webp" = [ "org.gnome.gThumb.desktop" ]; - "image/tiff" = [ "org.gnome.gThumb.desktop" ]; - "image/bmp" = [ "org.gnome.gThumb.desktop" ]; - }; - }; - home.packages = ( (with pkgs; [ - # --- General utils --- - libreoffice # Microsoft replace - hunspell - hunspellDicts.en_US ]) ++ (with pkgs.unstablePkgs; [ - # --- Creative utils --- - obs-studio - shotcut - blockbench - libresprite # Pixel art ]) ); @@ -88,11 +61,6 @@ in username = username; homeDirectory = "/home/${username}"; }; - programs.home-manager.enable = true; - - # --- General utils --- - programs.quickshell.enable = true; - programs.joplin-desktop.enable = true; # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion home.stateVersion = "25.11"; diff --git a/home/Winter/minecraft.nix b/home/Winter/Winter/minecraft.nix similarity index 72% rename from home/Winter/minecraft.nix rename to home/Winter/Winter/minecraft.nix index e4b0127..066d26e 100644 --- a/home/Winter/minecraft.nix +++ b/home/Winter/Winter/minecraft.nix @@ -13,10 +13,16 @@ in { # You can import other home-manager modules here imports = [ - ../common/features/niri/niri.nix - ../common/features/yazi/yazi.nix - ../common/features/nvimConf.nix - ../common/features/shell.nix + # If you want to use modules your own flake exports (from modules/home-manager): + # inputs.self.homeManagerModules.example + + # Or modules exported from other flakes (such as nix-colors): + # inputs.nix-colors.homeManagerModules.default + + # You can also split up your configuration and import pieces of it here: + # ./nvim.nix + + ../Base.nix ]; nixpkgs = { @@ -44,14 +50,17 @@ in }; }; - home.packages = with pkgs; [ - ]; + home.packages = ( + (with pkgs; [ + ]) + ++ (with pkgs.unstablePkgs; [ + ]) + ); home = { username = username; homeDirectory = "/home/${username}"; }; - programs.home-manager.enable = true; # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion home.stateVersion = "25.11"; diff --git a/home/common/example.nix b/home/Winter/common/example.nix similarity index 84% rename from home/common/example.nix rename to home/Winter/common/example.nix index 89d02af..296cd2a 100644 --- a/home/common/example.nix +++ b/home/Winter/common/example.nix @@ -8,7 +8,7 @@ ... }: let - username = ""; + username = "Winter"; #FIXME in { # You can import other home-manager modules here @@ -22,11 +22,7 @@ in # You can also split up your configuration and import pieces of it here: # ./nvim.nix - #../common/features/niri/niri.nix - #../common/features/spicetify.nix - #../common/features/yazi/yazi.nix - #../common/features/nvimConf.nix - #../common/features/shell.nix + ../Base.nix ]; nixpkgs = { @@ -54,14 +50,17 @@ in }; }; - home.packages = with pkgs; [ - ]; + home.packages = ( + (with pkgs; [ + ]) + ++ (with pkgs.unstablePkgs; [ + ]) + ); home = { username = username; homeDirectory = "/home/${username}"; }; - programs.home-manager.enable = true; # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion home.stateVersion = "25.11"; diff --git a/home/common/features/niri/config.kdl b/home/Winter/common/features/niri/config.kdl similarity index 100% rename from home/common/features/niri/config.kdl rename to home/Winter/common/features/niri/config.kdl diff --git a/home/common/features/niri/niri.nix b/home/Winter/common/features/niri/niri.nix similarity index 100% rename from home/common/features/niri/niri.nix rename to home/Winter/common/features/niri/niri.nix diff --git a/home/common/features/nvimConf.nix b/home/Winter/common/features/nvimConf.nix similarity index 100% rename from home/common/features/nvimConf.nix rename to home/Winter/common/features/nvimConf.nix diff --git a/home/common/features/shell.nix b/home/Winter/common/features/shell.nix similarity index 100% rename from home/common/features/shell.nix rename to home/Winter/common/features/shell.nix diff --git a/home/common/features/spicetify.nix b/home/Winter/common/features/spicetify.nix similarity index 100% rename from home/common/features/spicetify.nix rename to home/Winter/common/features/spicetify.nix diff --git a/home/common/features/yazi/catppuccin-frappe/README.md b/home/Winter/common/features/yazi/catppuccin-frappe/README.md similarity index 100% rename from home/common/features/yazi/catppuccin-frappe/README.md rename to home/Winter/common/features/yazi/catppuccin-frappe/README.md diff --git a/home/common/features/yazi/catppuccin-frappe/flavor.toml b/home/Winter/common/features/yazi/catppuccin-frappe/flavor.toml similarity index 100% rename from home/common/features/yazi/catppuccin-frappe/flavor.toml rename to home/Winter/common/features/yazi/catppuccin-frappe/flavor.toml diff --git a/home/common/features/yazi/catppuccin-frappe/preview.png b/home/Winter/common/features/yazi/catppuccin-frappe/preview.png similarity index 100% rename from home/common/features/yazi/catppuccin-frappe/preview.png rename to home/Winter/common/features/yazi/catppuccin-frappe/preview.png diff --git a/home/common/features/yazi/catppuccin-frappe/tmtheme.xml b/home/Winter/common/features/yazi/catppuccin-frappe/tmtheme.xml similarity index 100% rename from home/common/features/yazi/catppuccin-frappe/tmtheme.xml rename to home/Winter/common/features/yazi/catppuccin-frappe/tmtheme.xml diff --git a/home/common/features/yazi/yazi.nix b/home/Winter/common/features/yazi/yazi.nix similarity index 100% rename from home/common/features/yazi/yazi.nix rename to home/Winter/common/features/yazi/yazi.nix From cedfbd6ef6f667721395c0a806754d7f406d4658 Mon Sep 17 00:00:00 2001 From: winter <149337190+WinterEkisha@users.noreply.github.com> Date: Mon, 16 Nov 2026 22:52:07 -0800 Subject: [PATCH 09/16] fix: paths from refactor --- hosts/Reconix/configuration.nix | 2 +- hosts/WarNyx/configuration.nix | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hosts/Reconix/configuration.nix b/hosts/Reconix/configuration.nix index 221c5b1..2448242 100644 --- a/hosts/Reconix/configuration.nix +++ b/hosts/Reconix/configuration.nix @@ -62,7 +62,7 @@ in extraSpecialArgs = { inherit inputs; }; backupFileExtension = "backup"; users = { - Winter = import ../../home/Winter/${hostname}.nix; # FIXME + Winter = import ../../home/Winter/Winter/${hostname}.nix; }; }; diff --git a/hosts/WarNyx/configuration.nix b/hosts/WarNyx/configuration.nix index 4e02feb..b69ec42 100644 --- a/hosts/WarNyx/configuration.nix +++ b/hosts/WarNyx/configuration.nix @@ -68,10 +68,10 @@ in extraSpecialArgs = { inherit inputs; }; backupFileExtension = "backup"; users = { - Winter = import ../../home/Winter/${hostname}.nix; - minecraft = import ../../home/Winter/minecraft.nix; - Ekisha = import ../../home/Ekisha/${hostname}.nix; - Tester = import ../../home/Tester/${hostname}.nix; + Winter = import ../../home/Winter/Winter/${hostname}.nix; + minecraft = import ../../home/Winter/Winter/minecraft.nix; + Ekisha = import ../../home/Winter/Ekisha/${hostname}.nix; + Tester = import ../../home/Winter/Tester/${hostname}.nix; }; }; From 3e662f72f7fe39ef0e0ac3348b366367d550d074 Mon Sep 17 00:00:00 2001 From: winter <149337190+WinterEkisha@users.noreply.github.com> Date: Tue, 17 Nov 2026 08:27:51 -0800 Subject: [PATCH 10/16] refactor: hosts/ --- flake.nix | 4 +- home/Ricky/dev/{Ricky.nix => nixos.nix} | 0 hosts/{ => Ricky}/common/example.nix | 2 +- .../{ => Ricky}/common/users/dev/default.nix | 2 +- hosts/{ => Ricky}/common/users/example.nix | 2 +- hosts/Ricky/{ => nixos}/configuration.nix | 4 +- .../{ => nixos}/hardware-configuration.nix | 0 hosts/{ => Winter}/Reconix/configuration.nix | 0 .../Reconix/hardware-configuration.nix | 0 hosts/{ => Winter}/WarNyx/configuration.nix | 8 +- .../WarNyx/hardware-configuration.nix | 0 hosts/Winter/common/example.nix | 86 +++++++++++++++++++ .../common/features/Applications.nix | 0 .../common/features/DesktopKDEPlasma.nix | 0 .../common/features/DesktopNiri.nix | 0 .../common/features/servers/minecraft.nix | 0 hosts/{ => Winter}/common/global/base.nix | 0 .../common/users/Ekisha/default.nix | 2 +- .../common/users/Tester/default.nix | 2 +- .../common/users/Winter/default.nix | 2 +- hosts/Winter/common/users/example.nix | 40 +++++++++ 21 files changed, 140 insertions(+), 14 deletions(-) rename home/Ricky/dev/{Ricky.nix => nixos.nix} (100%) rename hosts/{ => Ricky}/common/example.nix (96%) rename hosts/{ => Ricky}/common/users/dev/default.nix (84%) rename hosts/{ => Ricky}/common/users/example.nix (85%) rename hosts/Ricky/{ => nixos}/configuration.nix (96%) rename hosts/Ricky/{ => nixos}/hardware-configuration.nix (100%) rename hosts/{ => Winter}/Reconix/configuration.nix (100%) rename hosts/{ => Winter}/Reconix/hardware-configuration.nix (100%) rename hosts/{ => Winter}/WarNyx/configuration.nix (91%) rename hosts/{ => Winter}/WarNyx/hardware-configuration.nix (100%) create mode 100644 hosts/Winter/common/example.nix rename hosts/{ => Winter}/common/features/Applications.nix (100%) rename hosts/{ => Winter}/common/features/DesktopKDEPlasma.nix (100%) rename hosts/{ => Winter}/common/features/DesktopNiri.nix (100%) rename hosts/{ => Winter}/common/features/servers/minecraft.nix (100%) rename hosts/{ => Winter}/common/global/base.nix (100%) rename hosts/{ => Winter}/common/users/Ekisha/default.nix (80%) rename hosts/{ => Winter}/common/users/Tester/default.nix (77%) rename hosts/{ => Winter}/common/users/Winter/default.nix (84%) create mode 100644 hosts/Winter/common/users/example.nix diff --git a/flake.nix b/flake.nix index 39cdf49..04fb67e 100644 --- a/flake.nix +++ b/flake.nix @@ -67,7 +67,7 @@ modules = [ nix-flatpak.nixosModules.nix-flatpak skwd-wall.nixosModules.default - ./hosts/WarNyx/configuration.nix + ./hosts/Winter/WarNyx/configuration.nix ]; }; Reconix = nixpkgs.lib.nixosSystem { @@ -75,7 +75,7 @@ modules = [ nix-flatpak.nixosModules.nix-flatpak skwd-wall.nixosModules.default - ./hosts/Reconix/configuration.nix + ./hosts/Winter/Reconix/configuration.nix ]; }; }; diff --git a/home/Ricky/dev/Ricky.nix b/home/Ricky/dev/nixos.nix similarity index 100% rename from home/Ricky/dev/Ricky.nix rename to home/Ricky/dev/nixos.nix diff --git a/hosts/common/example.nix b/hosts/Ricky/common/example.nix similarity index 96% rename from hosts/common/example.nix rename to hosts/Ricky/common/example.nix index 02f5c20..ddce6eb 100644 --- a/hosts/common/example.nix +++ b/hosts/Ricky/common/example.nix @@ -61,7 +61,7 @@ in extraSpecialArgs = { inherit inputs; }; backupFileExtension = "backup"; users = { - EXAMPLE = import ../../home/EXAMPLE/${hostname}.nix; # FIXME + EXAMPLE = import ../../../home/Ricky/EXAMPLE/${hostname}.nix; # FIXME }; }; diff --git a/hosts/common/users/dev/default.nix b/hosts/Ricky/common/users/dev/default.nix similarity index 84% rename from hosts/common/users/dev/default.nix rename to hosts/Ricky/common/users/dev/default.nix index 39103ad..2bf9bbb 100644 --- a/hosts/common/users/dev/default.nix +++ b/hosts/Ricky/common/users/dev/default.nix @@ -30,7 +30,7 @@ in { }; # TODO: ensure correct paths - home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix; + home-manager.users.${username} = import ../../../../../home/Ricky/${username}/${config.networking.hostName}.nix; security.pam.services = { swaylock = {}; diff --git a/hosts/common/users/example.nix b/hosts/Ricky/common/users/example.nix similarity index 85% rename from hosts/common/users/example.nix rename to hosts/Ricky/common/users/example.nix index f0eb068..73fd503 100644 --- a/hosts/common/users/example.nix +++ b/hosts/Ricky/common/users/example.nix @@ -31,7 +31,7 @@ in { }; - home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix; + home-manager.users.${username} = import ../../../../home/Ricky/${username}/${config.networking.hostName}.nix; security.pam.services = { swaylock = {}; diff --git a/hosts/Ricky/configuration.nix b/hosts/Ricky/nixos/configuration.nix similarity index 96% rename from hosts/Ricky/configuration.nix rename to hosts/Ricky/nixos/configuration.nix index d0685a3..2e32a56 100644 --- a/hosts/Ricky/configuration.nix +++ b/hosts/Ricky/nixos/configuration.nix @@ -8,7 +8,7 @@ ... }: let - hostname = "Ricky"; + hostname = "nixos"; in { # You can import other NixOS modules here @@ -62,7 +62,7 @@ in extraSpecialArgs = { inherit inputs; }; backupFileExtension = "backup"; users = { - dev = import ../../home/Ricky/dev/${hostname}.nix; + dev = import ../../../home/Ricky/dev/${hostname}.nix; # FIXME }; }; diff --git a/hosts/Ricky/hardware-configuration.nix b/hosts/Ricky/nixos/hardware-configuration.nix similarity index 100% rename from hosts/Ricky/hardware-configuration.nix rename to hosts/Ricky/nixos/hardware-configuration.nix diff --git a/hosts/Reconix/configuration.nix b/hosts/Winter/Reconix/configuration.nix similarity index 100% rename from hosts/Reconix/configuration.nix rename to hosts/Winter/Reconix/configuration.nix diff --git a/hosts/Reconix/hardware-configuration.nix b/hosts/Winter/Reconix/hardware-configuration.nix similarity index 100% rename from hosts/Reconix/hardware-configuration.nix rename to hosts/Winter/Reconix/hardware-configuration.nix diff --git a/hosts/WarNyx/configuration.nix b/hosts/Winter/WarNyx/configuration.nix similarity index 91% rename from hosts/WarNyx/configuration.nix rename to hosts/Winter/WarNyx/configuration.nix index b69ec42..71e3fb7 100644 --- a/hosts/WarNyx/configuration.nix +++ b/hosts/Winter/WarNyx/configuration.nix @@ -68,10 +68,10 @@ in extraSpecialArgs = { inherit inputs; }; backupFileExtension = "backup"; users = { - Winter = import ../../home/Winter/Winter/${hostname}.nix; - minecraft = import ../../home/Winter/Winter/minecraft.nix; - Ekisha = import ../../home/Winter/Ekisha/${hostname}.nix; - Tester = import ../../home/Winter/Tester/${hostname}.nix; + Winter = import ../../../home/Winter/Winter/${hostname}.nix; + minecraft = import ../../../home/Winter/Winter/minecraft.nix; + Ekisha = import ../../../home/Winter/Ekisha/${hostname}.nix; + Tester = import ../../../home/Winter/Tester/${hostname}.nix; }; }; diff --git a/hosts/WarNyx/hardware-configuration.nix b/hosts/Winter/WarNyx/hardware-configuration.nix similarity index 100% rename from hosts/WarNyx/hardware-configuration.nix rename to hosts/Winter/WarNyx/hardware-configuration.nix diff --git a/hosts/Winter/common/example.nix b/hosts/Winter/common/example.nix new file mode 100644 index 0000000..36ffcdc --- /dev/null +++ b/hosts/Winter/common/example.nix @@ -0,0 +1,86 @@ +# This is your system's configuration file. +# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix) +{ + inputs, + lib, + config, + pkgs, + ... +}: +let + hostname = ""; #FIXME, also ensure /home/username/hostname.nix +in +{ + # You can import other NixOS modules here + imports = [ + # If you want to use modules your own flake exports (from modules/nixos): + # inputs.self.nixosModules.example + + # Or modules from other flakes (such as nixos-hardware): + # inputs.hardware.nixosModules.common-cpu-amd + # inputs.hardware.nixosModules.common-ssd + + ./hardware-configuration.nix + + ../common/users/Winter/default.nix + #../common/global/default.nix + #../common/features/Desktop.nix + #../common/features/Applications.nix + #../common/features/servers/minecraft.nix + + inputs.home-manager.nixosModules.home-manager + ]; + + nixpkgs = { + # You can add overlays here + overlays = [ + # Add overlays your own flake exports (from overlays and pkgs dir): + inputs.self.overlays.additions + inputs.self.overlays.modifications + inputs.self.overlays.unstable-packages + + # You can also add overlays exported from other flakes: + # neovim-nightly-overlay.overlays.default + + # Or define it inline, for example: + # (final: prev: { + # hi = final.hello.overrideAttrs (oldAttrs: { + # patches = [ ./change-hello-to-hi.patch ]; + # }); + # }) + ]; + # Configure your nixpkgs instance + config = { + # Disable if you don't want unfree packages + allowUnfree = true; + }; + }; + + # build home-manager with nixos-rebuild and not home-manager command + home-manager = { + extraSpecialArgs = { inherit inputs; }; + backupFileExtension = "backup"; + users = { + EXAMPLE = import ../../../home/EXAMPLE/EXAMPLE/${hostname}.nix; # FIXME + }; + }; + + environment.systemPackages = with pkgs; [ + ]; + + networking.hostName = hostname; + + # This setups a SSH server. Very important if you're setting up a headless system. + # Feel free to remove if you don't need it. + #Unused, keeping for later reference + services.openssh = { + enable = false; + settings = { + PermitRootLogin = "no"; + PasswordAuthentication = false; + }; + }; + + # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion + #system.stateVersion = "25.11"; #FIXME, should be fine to change on a fresh install +} diff --git a/hosts/common/features/Applications.nix b/hosts/Winter/common/features/Applications.nix similarity index 100% rename from hosts/common/features/Applications.nix rename to hosts/Winter/common/features/Applications.nix diff --git a/hosts/common/features/DesktopKDEPlasma.nix b/hosts/Winter/common/features/DesktopKDEPlasma.nix similarity index 100% rename from hosts/common/features/DesktopKDEPlasma.nix rename to hosts/Winter/common/features/DesktopKDEPlasma.nix diff --git a/hosts/common/features/DesktopNiri.nix b/hosts/Winter/common/features/DesktopNiri.nix similarity index 100% rename from hosts/common/features/DesktopNiri.nix rename to hosts/Winter/common/features/DesktopNiri.nix diff --git a/hosts/common/features/servers/minecraft.nix b/hosts/Winter/common/features/servers/minecraft.nix similarity index 100% rename from hosts/common/features/servers/minecraft.nix rename to hosts/Winter/common/features/servers/minecraft.nix diff --git a/hosts/common/global/base.nix b/hosts/Winter/common/global/base.nix similarity index 100% rename from hosts/common/global/base.nix rename to hosts/Winter/common/global/base.nix diff --git a/hosts/common/users/Ekisha/default.nix b/hosts/Winter/common/users/Ekisha/default.nix similarity index 80% rename from hosts/common/users/Ekisha/default.nix rename to hosts/Winter/common/users/Ekisha/default.nix index 4cc8197..c098b7b 100644 --- a/hosts/common/users/Ekisha/default.nix +++ b/hosts/Winter/common/users/Ekisha/default.nix @@ -20,7 +20,7 @@ in { }; - home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix; + home-manager.users.${username} = import ../../../../../home/Winter/${username}/${config.networking.hostName}.nix; security.pam.services = { swaylock = {}; diff --git a/hosts/common/users/Tester/default.nix b/hosts/Winter/common/users/Tester/default.nix similarity index 77% rename from hosts/common/users/Tester/default.nix rename to hosts/Winter/common/users/Tester/default.nix index 3ba0b13..6e0934e 100644 --- a/hosts/common/users/Tester/default.nix +++ b/hosts/Winter/common/users/Tester/default.nix @@ -16,7 +16,7 @@ in { }; - home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix; + home-manager.users.${username} = import ../../../../../home/Winter/${username}/${config.networking.hostName}.nix; security.pam.services = { swaylock = {}; diff --git a/hosts/common/users/Winter/default.nix b/hosts/Winter/common/users/Winter/default.nix similarity index 84% rename from hosts/common/users/Winter/default.nix rename to hosts/Winter/common/users/Winter/default.nix index 2ef07af..730e865 100644 --- a/hosts/common/users/Winter/default.nix +++ b/hosts/Winter/common/users/Winter/default.nix @@ -31,7 +31,7 @@ in { }; - home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix; + home-manager.users.${username} = import ../../../../../home/Winter/${username}/${config.networking.hostName}.nix; security.pam.services = { swaylock = {}; diff --git a/hosts/Winter/common/users/example.nix b/hosts/Winter/common/users/example.nix new file mode 100644 index 0000000..d9f0753 --- /dev/null +++ b/hosts/Winter/common/users/example.nix @@ -0,0 +1,40 @@ +{ + pkgs, + config, + lib, + ... +}: let + username = ""; #FIXME + ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups; +in { + users.users.${username} = { + isNormalUser = true; + extraGroups = ifTheyExist [ + "audio" + "deluge" + "docker" + "git" + "i2c" + "libvirtd" + "minecraft" + "mysql" + "wpa_supplicant" + "plugdev" + "podman" + "tss" + "video" + "wheel" + "wireshark" + ]; + + #packages = [pkgs.home-manager]; + }; + + + home-manager.users.${username} = import ../../../../../home/Winter/${username}/${config.networking.hostName}.nix; + + security.pam.services = { + swaylock = {}; + ${username}.enableGnomeKeyring = true; #FIXME + }; +} From 32f84fd69e715b1bbb815b455a00417e9ff7a74f Mon Sep 17 00:00:00 2001 From: winter <149337190+WinterEkisha@users.noreply.github.com> Date: Tue, 17 Nov 2026 09:00:06 -0800 Subject: [PATCH 11/16] refactor: servers --- home/Winter/{Winter => servers}/minecraft.nix | 1 + hosts/Winter/WarNyx/configuration.nix | 8 +----- .../{features => }/servers/minecraft.nix | 16 +++--------- hosts/Winter/common/servers/users/example.nix | 26 +++++++++++++++++++ 4 files changed, 31 insertions(+), 20 deletions(-) rename home/Winter/{Winter => servers}/minecraft.nix (99%) rename hosts/Winter/common/{features => }/servers/minecraft.nix (59%) create mode 100644 hosts/Winter/common/servers/users/example.nix diff --git a/home/Winter/Winter/minecraft.nix b/home/Winter/servers/minecraft.nix similarity index 99% rename from home/Winter/Winter/minecraft.nix rename to home/Winter/servers/minecraft.nix index 066d26e..03ad825 100644 --- a/home/Winter/Winter/minecraft.nix +++ b/home/Winter/servers/minecraft.nix @@ -52,6 +52,7 @@ in home.packages = ( (with pkgs; [ + jdk21 ]) ++ (with pkgs.unstablePkgs; [ ]) diff --git a/hosts/Winter/WarNyx/configuration.nix b/hosts/Winter/WarNyx/configuration.nix index 71e3fb7..bb0614d 100644 --- a/hosts/Winter/WarNyx/configuration.nix +++ b/hosts/Winter/WarNyx/configuration.nix @@ -33,7 +33,7 @@ in ../common/features/DesktopNiri.nix ../common/features/DesktopKDEPlasma.nix ../common/features/Applications.nix - ../common/features/servers/minecraft.nix + ../common/servers/minecraft.nix inputs.home-manager.nixosModules.home-manager ]; @@ -67,12 +67,6 @@ in home-manager = { extraSpecialArgs = { inherit inputs; }; backupFileExtension = "backup"; - users = { - Winter = import ../../../home/Winter/Winter/${hostname}.nix; - minecraft = import ../../../home/Winter/Winter/minecraft.nix; - Ekisha = import ../../../home/Winter/Ekisha/${hostname}.nix; - Tester = import ../../../home/Winter/Tester/${hostname}.nix; - }; }; networking.extraHosts = " diff --git a/hosts/Winter/common/features/servers/minecraft.nix b/hosts/Winter/common/servers/minecraft.nix similarity index 59% rename from hosts/Winter/common/features/servers/minecraft.nix rename to hosts/Winter/common/servers/minecraft.nix index 2929141..00d46a9 100644 --- a/hosts/Winter/common/features/servers/minecraft.nix +++ b/hosts/Winter/common/servers/minecraft.nix @@ -7,22 +7,12 @@ pkgs, ... }: { + imports = [ + ./users/minecraft.nix + ]; networking.firewall = { enable = true; allowedTCPPorts = [ 25565 25567 ]; allowedUDPPorts = [ 25565 25567]; }; - - environment.systemPackages = with pkgs; [ - pkgs.jdk21 - ]; - - users.users = { - minecraft = { - isNormalUser = true; - shell = pkgs.bashInteractive; - openssh.authorizedKeys.keys = [ - ]; - }; - }; } diff --git a/hosts/Winter/common/servers/users/example.nix b/hosts/Winter/common/servers/users/example.nix new file mode 100644 index 0000000..4ec5cac --- /dev/null +++ b/hosts/Winter/common/servers/users/example.nix @@ -0,0 +1,26 @@ +{ + pkgs, + config, + lib, + ... +}: let + username = "minecraft"; #FIXME + ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups; +in { + users.users.${username} = { + isNormalUser = true; + extraGroups = ifTheyExist [ + "minecraft" + ]; + + #packages = [pkgs.home-manager]; + }; + + + home-manager.users.${username} = import ../../../../../home/Winter/servers/${username}.nix; + + security.pam.services = { + swaylock = {}; + ${username}.enableGnomeKeyring = true; + }; +} From 9f6688b397e4170c08dd0d132f53099a22eb353b Mon Sep 17 00:00:00 2001 From: winter <149337190+WinterEkisha@users.noreply.github.com> Date: Tue, 17 Nov 2026 09:07:08 -0800 Subject: [PATCH 12/16] fix path --- home/Winter/Base.nix | 10 +++++----- .../servers/users/{example.nix => minecraft.nix} | 0 2 files changed, 5 insertions(+), 5 deletions(-) rename hosts/Winter/common/servers/users/{example.nix => minecraft.nix} (100%) diff --git a/home/Winter/Base.nix b/home/Winter/Base.nix index a50671d..23e21d2 100644 --- a/home/Winter/Base.nix +++ b/home/Winter/Base.nix @@ -19,11 +19,11 @@ # You can also split up your configuration and import pieces of it here: # ./nvim.nix - ../common/features/niri/niri.nix - ../common/features/spicetify.nix - ../common/features/yazi/yazi.nix - ../common/features/nvimConf.nix - ../common/features/shell.nix + ./common/features/niri/niri.nix + ./common/features/spicetify.nix + ./common/features/yazi/yazi.nix + ./common/features/nvimConf.nix + ./common/features/shell.nix ]; nixpkgs = { diff --git a/hosts/Winter/common/servers/users/example.nix b/hosts/Winter/common/servers/users/minecraft.nix similarity index 100% rename from hosts/Winter/common/servers/users/example.nix rename to hosts/Winter/common/servers/users/minecraft.nix From 0ca8d4fd055838303eaa811915cccc11b49f7676 Mon Sep 17 00:00:00 2001 From: winter <149337190+WinterEkisha@users.noreply.github.com> Date: Tue, 17 Nov 2026 09:55:56 -0800 Subject: [PATCH 13/16] flake update + smth: --- flake.lock | 64 +++++++++++++++++------------------ home/Winter/Winter/WarNyx.nix | 1 + 2 files changed, 33 insertions(+), 32 deletions(-) diff --git a/flake.lock b/flake.lock index 4bdb846..ea11deb 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ "rust-overlay": "rust-overlay" }, "locked": { - "lastModified": 1784030954, - "narHash": "sha256-MPMVSBhSEl+ShSrWVN5qH3FiX2gg8LbYA8L3nuQw5VE=", + "lastModified": 1794571619, + "narHash": "sha256-QYZwkbLVTRjnIy6cQh5qznKOgrBsxA1SK5jgq+KaBBc=", "ref": "refs/heads/main", - "rev": "25ea4fd7a42359379da9ddadedda1c477caa4ae0", - "revCount": 1376, + "rev": "1240df7bd17323d626c94fb50b8ed5a02a185a75", + "revCount": 1384, "type": "git", "url": "https://codeberg.org/LGFae/awww" }, @@ -44,11 +44,11 @@ ] }, "locked": { - "lastModified": 1790898470, - "narHash": "sha256-zTwuwezD0w3hpga6a6P8emidzAZFyWqlNeRBlpWOOl8=", + "lastModified": 1793576659, + "narHash": "sha256-V1h85lUaJBQoHFrB2vpXZOE0Ju1MYSnIpsehoVZYlDo=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "024633cd702b10285db5cb19b40ad48d2399ba60", + "rev": "ea2630b7470978622c7689a1ff75d2b389175399", "type": "github" }, "original": { @@ -112,11 +112,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1793876309, - "narHash": "sha256-Wojg9lIH/hDH91iDVH2/EPw8oDSpxjxhXONbU1yf4Zg=", + "lastModified": 1794537146, + "narHash": "sha256-Wpz/7x/YWnDIBu7yj6ixe8j6fIMsidd9Y+o1PqPF3iM=", "owner": "nixos", "repo": "nixpkgs", - "rev": "f9a75f41be3a74eab55d3a7679d34ad6cc0da977", + "rev": "d5cc6833999746cffdfe0598f7bc801a57b887a9", "type": "github" }, "original": { @@ -128,11 +128,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1794552581, - "narHash": "sha256-qXFIqA6FCcx7XeDzw0ZNlkDT9UiCzrNDwK8RuU8RcHM=", + "lastModified": 1794872590, + "narHash": "sha256-E+XLAfnC7+bdr4qlEgRv6cdGmiqTU5oeFNKCha7epqQ=", "owner": "nixos", "repo": "nixpkgs", - "rev": "f1e5c356f35d07e7b71a6b5e6c9338e0b029e0c0", + "rev": "f68407657ad294471eb4b2e65d193df26edf729f", "type": "github" }, "original": { @@ -144,11 +144,11 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1791487292, - "narHash": "sha256-tqM7xDEsaeK1p6VvRygeZ9LkQRpUUkbRT02BHv6hnTM=", + "lastModified": 1793977579, + "narHash": "sha256-WrSODdZFVIs/Hh2NzC0bY+ROByi0bATg8WfePX8dPj8=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "8edc0c72e3a38faf5434e40d1f19431125fe4b30", + "rev": "4fe25e12eb9f4c744966dd3de5a05246cf098601", "type": "github" }, "original": { @@ -176,11 +176,11 @@ }, "nixpkgs_5": { "locked": { - "lastModified": 1793341285, - "narHash": "sha256-LOv16TsMYV2/8BUYnhSxHkOASe7es2ORbqMeLlZJ8Hc=", - "rev": "1c89083e451e891152365b799595cf7790a43325", + "lastModified": 1794537146, + "narHash": "sha256-bTKSclXJAmo9qdxPedTBHUGr8awPr4BrbOoOutJsYIc=", + "rev": "d5cc6833999746cffdfe0598f7bc801a57b887a9", "type": "tarball", - "url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1105037.1c89083e451e/nixexprs.tar.xz" + "url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1119549.d5cc68339997/nixexprs.tar.xz" }, "original": { "type": "tarball", @@ -194,11 +194,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1792203519, - "narHash": "sha256-yJ072hxngo/srNdLTp4BlFeo0hedwnKicI3TGlSXLFE=", + "lastModified": 1794408140, + "narHash": "sha256-vS4BTt6CkLn2BLcYA7kZUxFNnZpPgW0GJ73s/VoPhWc=", "owner": "nix-community", "repo": "nixvim", - "rev": "453dc9c5037e6d1bec81d2a51ddacd58a2f44e9c", + "rev": "44849d3d24b28d59fa963bd832ec59c60c56a34c", "type": "github" }, "original": { @@ -212,11 +212,11 @@ "nixpkgs": "nixpkgs_4" }, "locked": { - "lastModified": 1792102655, - "narHash": "sha256-o8q1FyTfInU5jv+78iqkNuItaQ9aIyTAbUfv3YbFGms=", + "lastModified": 1792102657, + "narHash": "sha256-iXWuCKOidcaAEg6sbnJRGrNfEPjNkcDYmoiW+YJZ74g=", "owner": "liixini", "repo": "skwd-wall", - "rev": "3bd7d5763a13984cc5a2be0e8a19e9df2805ed88", + "rev": "3f80b1922aa6674065970dc6b78fc948960e84d5", "type": "github" }, "original": { @@ -264,11 +264,11 @@ "release": "release" }, "locked": { - "lastModified": 1793916584, - "narHash": "sha256-u2IEi1owjJ/zJvNW2WGHNoZGq+XrgFf2GAbNJ5AI6Nw=", + "lastModified": 1794554060, + "narHash": "sha256-rPFghMPcQlGU33sbd919wn1k5+1lP6Khj4Q2Xeh75Q8=", "owner": "liixini", "repo": "skwd-wall", - "rev": "3dfdc7fa88ad3c0ffd735b7f9b9c1bcd2ae80b06", + "rev": "04344fc867f52d5a124d6ac8acad5ad984b91700", "type": "github" }, "original": { @@ -283,11 +283,11 @@ "systems": "systems_2" }, "locked": { - "lastModified": 1793662659, - "narHash": "sha256-a+za5QCDlOe/PsuMlZiBcQ13cyiyOscK17BAJFu1/dE=", + "lastModified": 1794871977, + "narHash": "sha256-An9Qcr31Z+PmF4TlJWY6RkM4yPbBKc2vkyp6NctvMEk=", "owner": "Gerg-L", "repo": "spicetify-nix", - "rev": "13e6fed4eb99f809d390fb50f591bed6cb716dc0", + "rev": "cd7d88aca6db91899373d5574bb252547f4c8c2c", "type": "github" }, "original": { diff --git a/home/Winter/Winter/WarNyx.nix b/home/Winter/Winter/WarNyx.nix index d9d2721..d3134af 100644 --- a/home/Winter/Winter/WarNyx.nix +++ b/home/Winter/Winter/WarNyx.nix @@ -52,6 +52,7 @@ in home.packages = ( (with pkgs; [ + jdk21 ]) ++ (with pkgs.unstablePkgs; [ ]) From 9fffe416d52d3c5117c1bb4b2a9a1e5b9a24c21a Mon Sep 17 00:00:00 2001 From: winter <149337190+WinterEkisha@users.noreply.github.com> Date: Tue, 17 Nov 2026 11:23:48 -0800 Subject: [PATCH 14/16] remove: auto-upgrade & gc --- hosts/Winter/common/global/base.nix | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/hosts/Winter/common/global/base.nix b/hosts/Winter/common/global/base.nix index 0e2985d..c9c0b34 100644 --- a/hosts/Winter/common/global/base.nix +++ b/hosts/Winter/common/global/base.nix @@ -44,28 +44,6 @@ in time.timeZone = "America/Los_Angeles"; - system.autoUpgrade = { - enable = true; - #flake = "git+https://${repoDomain}/${repoPath}?ref=${repoBranch}#${config.networking.hostName}"; #FIXME - flake = "git+https://${repoDomain}/${repoPath}?ref=experimental#${config.networking.hostName}"; - flags = [ - "--refresh" - ]; - dates = "03:00"; - randomizedDelaySec = "30min"; - allowReboot = true; - rebootWindow = { - lower = "02:00"; - upper = "05:00"; - }; - }; - - nix.gc = { - automatic = true; - dates = "weekly"; - options = "--delete-older-than 30d"; - }; - # --- File Manager --- xdg.mime.enable = true; services.tumbler.enable = true; From 5c67a02d4b191b86e0dcb0249cbfbe0914224ddc Mon Sep 17 00:00:00 2001 From: winter <149337190+WinterEkisha@users.noreply.github.com> Date: Tue, 17 Nov 2026 19:26:56 -0800 Subject: [PATCH 15/16] feat: kitty config --- flake.lock | 18 +++++++++--------- home/Winter/Base.nix | 1 + home/Winter/common/features/niri/colors.kdl | 0 home/Winter/common/features/niri/config.kdl | 8 ++++++++ home/Winter/common/features/shell.nix | 4 +++- hosts/Winter/WarNyx/configuration.nix | 1 - 6 files changed, 21 insertions(+), 11 deletions(-) create mode 100644 home/Winter/common/features/niri/colors.kdl diff --git a/flake.lock b/flake.lock index ea11deb..4263616 100644 --- a/flake.lock +++ b/flake.lock @@ -64,11 +64,11 @@ ] }, "locked": { - "lastModified": 1794251182, - "narHash": "sha256-R2sZBXiOJo3HAnvTiVkbbHDJy//JMlAwUKEiPbfqPXk=", + "lastModified": 1794943722, + "narHash": "sha256-Qkh6uNyMsic61gfyOO8VXnC+HEBdti6Xe2kKiMf66O0=", "owner": "nix-community", "repo": "home-manager", - "rev": "6eb2d33d1d0c95a37ef6443c88e6c1686012ee8b", + "rev": "5643e73425b85ac359ba2aaf83deae8ce1cd7968", "type": "github" }, "original": { @@ -112,11 +112,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1794537146, - "narHash": "sha256-Wpz/7x/YWnDIBu7yj6ixe8j6fIMsidd9Y+o1PqPF3iM=", + "lastModified": 1794750194, + "narHash": "sha256-c6ZxSsG1c2luSrbESFfp9Jq2pSVhGst2to4aIzt2Nes=", "owner": "nixos", "repo": "nixpkgs", - "rev": "d5cc6833999746cffdfe0598f7bc801a57b887a9", + "rev": "1a08097fc1ed85575db39763b2c4a5d8970a37ba", "type": "github" }, "original": { @@ -194,11 +194,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1794408140, - "narHash": "sha256-vS4BTt6CkLn2BLcYA7kZUxFNnZpPgW0GJ73s/VoPhWc=", + "lastModified": 1794943345, + "narHash": "sha256-1d33ym1V/UxX9pcNbrpG0/P8riFHE8VuVAc3T8WN52I=", "owner": "nix-community", "repo": "nixvim", - "rev": "44849d3d24b28d59fa963bd832ec59c60c56a34c", + "rev": "b67578f451bd779e79ec42f8153a403421a4b266", "type": "github" }, "original": { diff --git a/home/Winter/Base.nix b/home/Winter/Base.nix index 23e21d2..a6ef878 100644 --- a/home/Winter/Base.nix +++ b/home/Winter/Base.nix @@ -57,6 +57,7 @@ libreoffice # Microsoft replace hunspell hunspellDicts.en_US + matugen ]) ++ (with pkgs.unstablePkgs; [ # --- Creative utils --- diff --git a/home/Winter/common/features/niri/colors.kdl b/home/Winter/common/features/niri/colors.kdl new file mode 100644 index 0000000..e69de29 diff --git a/home/Winter/common/features/niri/config.kdl b/home/Winter/common/features/niri/config.kdl index 75969e4..02b2d4c 100644 --- a/home/Winter/common/features/niri/config.kdl +++ b/home/Winter/common/features/niri/config.kdl @@ -276,6 +276,14 @@ layout { } } +//global blur fine-tuning +blur { + passes 3 // more passes = stronger blur (default: 3) + offset 3.0 // sample distance per pass (default: 3.0) + noise 0.02 // grain overlay (default: 0.02) + saturation 1.5 // color saturation boost (default: 1.5) +} + // Add lines like this to spawn processes at startup. // Note that running niri as a session supports xdg-desktop-autostart, // which may be more convenient to use. diff --git a/home/Winter/common/features/shell.nix b/home/Winter/common/features/shell.nix index 8974332..c59d1ae 100644 --- a/home/Winter/common/features/shell.nix +++ b/home/Winter/common/features/shell.nix @@ -52,8 +52,10 @@ programs.kitty = { enable = true; - #extraConfig = "include *.conf"; settings = { + "font_size" = 15; + "background_opacity" = 0.6; + "background_blur" = 1; "include" = "colors.conf"; }; }; diff --git a/hosts/Winter/WarNyx/configuration.nix b/hosts/Winter/WarNyx/configuration.nix index 679afba..15fce45 100644 --- a/hosts/Winter/WarNyx/configuration.nix +++ b/hosts/Winter/WarNyx/configuration.nix @@ -31,7 +31,6 @@ in ../common/users/Ekisha/default.nix ../common/users/Tester/default.nix ../common/features/DesktopNiri.nix - ../common/features/DesktopKDEPlasma.nix ../common/features/Applications.nix ../common/servers/minecraft.nix From ea8fbe243c21983b6d134448e3be063e57a9016e Mon Sep 17 00:00:00 2001 From: winter <149337190+WinterEkisha@users.noreply.github.com> Date: Tue, 17 Nov 2026 20:10:06 -0800 Subject: [PATCH 16/16] feat: Kitty + niri config --- home/Winter/common/features/niri/colors.kdl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/home/Winter/common/features/niri/colors.kdl b/home/Winter/common/features/niri/colors.kdl index e69de29..d8dd571 100644 --- a/home/Winter/common/features/niri/colors.kdl +++ b/home/Winter/common/features/niri/colors.kdl @@ -0,0 +1,10 @@ +layout { + focus-ring { + active-color "#ff0000" + inactive-color "#00ff00" + } + border { + active-color "#ffb3ac" + inactive-color "#a68a87" + } +}