#1 hater of infinite recursion

This commit is contained in:
do butterflies cry? 2026-02-13 23:27:35 +10:00
parent 39e5c40e12
commit f66aa330c3
31 changed files with 946 additions and 851 deletions

48
flake.lock generated
View file

@ -145,7 +145,7 @@
"inputs": {
"deploy-rs": "deploy-rs",
"nixpkgs": [
"nixpkgs"
"nixpkgs-unstable"
],
"nixpkgs-unstable": [
"nixpkgs-unstable"
@ -156,11 +156,11 @@
]
},
"locked": {
"lastModified": 1770914135,
"narHash": "sha256-gAOwv1il9GUxsS7XGF612Ftm9+cMvd1QOINwJlWpCnQ=",
"lastModified": 1770984934,
"narHash": "sha256-5+/r1CFqmmzUIqZNjrGUjGgF4BxDkQ2NUrKkCsBBE9s=",
"owner": "emilelcb",
"repo": "Cerulean",
"rev": "b151f45dfbdb0849d3c24940af946f11652dd8bf",
"rev": "3ba385ee25cc02c91fe4c245a734d59c54a1b1df",
"type": "github"
},
"original": {
@ -455,7 +455,7 @@
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
"nixpkgs-unstable"
]
},
"locked": {
@ -1224,13 +1224,13 @@
"type": "github"
}
},
"nixpkgs-unstable": {
"nixpkgs-staging": {
"locked": {
"lastModified": 1770914792,
"narHash": "sha256-QpCRgIbupASO9adsg2kFNNUnOIQq0vJ9g6HCxlOA7v8=",
"lastModified": 1770984692,
"narHash": "sha256-n6HUgG2+cvLcQkZEgXu14qgl/SrKC4EZerQXod0HGDg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "3b285f04c85ceacf7a53cfa21b2f5cb60a2d06e2",
"rev": "e7b82c0fddf16a5e3fee29bbd8e0c8c67158176d",
"type": "github"
},
"original": {
@ -1240,13 +1240,13 @@
"type": "github"
}
},
"nixpkgs_10": {
"nixpkgs-unstable": {
"locked": {
"lastModified": 1770562336,
"narHash": "sha256-ub1gpAONMFsT/GU2hV6ZWJjur8rJ6kKxdm9IlCT0j84=",
"lastModified": 1770841267,
"narHash": "sha256-9xejG0KoqsoKEGp2kVbXRlEYtFFcDTHjidiuX8hGO44=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d6c71932130818840fc8fe9509cf50be8c64634f",
"rev": "ec7c70d12ce2fc37cb92aff673dcdca89d187bae",
"type": "github"
},
"original": {
@ -1256,7 +1256,7 @@
"type": "github"
}
},
"nixpkgs_11": {
"nixpkgs_10": {
"locked": {
"lastModified": 1770197578,
"narHash": "sha256-AYqlWrX09+HvGs8zM6ebZ1pwUqjkfpnv8mewYwAo+iM=",
@ -1272,7 +1272,7 @@
"type": "github"
}
},
"nixpkgs_12": {
"nixpkgs_11": {
"locked": {
"lastModified": 1769461804,
"narHash": "sha256-msG8SU5WsBUfVVa/9RPLaymvi5bI8edTavbIq3vRlhI=",
@ -1423,15 +1423,15 @@
"systems": "systems_2"
},
"locked": {
"lastModified": 1770911021,
"narHash": "sha256-8FcXBu0CjeeZeq3uW2h/c5AV+hqELuyPiHsUogOSmZM=",
"owner": "emilelcb",
"lastModified": 1770975056,
"narHash": "sha256-ZXTz/P3zUbbM6lNXzt91u8EwfNqhXpYMu8+wvFZqQHE=",
"owner": "cry128",
"repo": "nt",
"rev": "471e1617e8cc0bc749712a7a6af2b2e9f988ffbf",
"rev": "f42dcdd49a7921a7f433512e83d5f93696632412",
"type": "github"
},
"original": {
"owner": "emilelcb",
"owner": "cry128",
"repo": "nt",
"type": "github"
}
@ -1489,7 +1489,7 @@
"nix-alien": "nix-alien",
"nixcats": "nixcats",
"nixcord": "nixcord",
"nixpkgs": "nixpkgs_10",
"nixpkgs-staging": "nixpkgs-staging",
"nixpkgs-unstable": "nixpkgs-unstable",
"sddm-silent": "sddm-silent",
"spicetify-nix": "spicetify-nix",
@ -1538,7 +1538,7 @@
"sddm-silent": {
"inputs": {
"nixpkgs": [
"nixpkgs"
"nixpkgs-unstable"
]
},
"locked": {
@ -1557,7 +1557,7 @@
},
"spicetify-nix": {
"inputs": {
"nixpkgs": "nixpkgs_11",
"nixpkgs": "nixpkgs_10",
"systems": "systems_5"
},
"locked": {
@ -1766,7 +1766,7 @@
"zen": {
"inputs": {
"home-manager": "home-manager_2",
"nixpkgs": "nixpkgs_12"
"nixpkgs": "nixpkgs_11"
},
"locked": {
"lastModified": 1770910552,

View file

@ -5,19 +5,19 @@
systems.url = "github:nix-systems/default";
# WARNING: don't remove duplicate!! (cry64 will fix)
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/staging-next";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-staging.url = "github:NixOS/nixpkgs/staging-next";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
cerulean = {
url = "github:emilelcb/Cerulean";
inputs = {
systems.follows = "systems";
nixpkgs.follows = "nixpkgs";
nixpkgs.follows = "nixpkgs-unstable";
nixpkgs-unstable.follows = "nixpkgs-unstable";
};
};
@ -51,7 +51,7 @@
# temp theme until i bother creating my own </3
sddm-silent = {
url = "github:uiriansan/SilentSDDM";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
};
@ -59,34 +59,6 @@
extra-experimental-features = "pipe-operators";
};
outputs = {cerulean, ...} @ inputs:
cerulean.mkNexus ./. (self: {
nexus = {
overlays = with inputs; [
cachyos.overlays.pinned
millennium.overlays.default
(import ./overlays.nix)
];
specialArgs = {inherit inputs;};
extraPkgConfig = {
config.allowUnfree = true;
};
extraModules = with inputs; [
home-manager.nixosModules.home-manager
];
nodes = {
nixarawrui = {
system = "x86_64-linux";
extraModules = with inputs; [
sddm-silent.nixosModules.default
];
};
};
};
});
outputs = inputs:
import ./snow.nix inputs;
}

View file

@ -2,9 +2,9 @@
# trans <3
{
inputs,
pkgs,
upkgs,
root,
system,
...
}: {
imports = [
@ -62,10 +62,10 @@
fonts.fontconfig.enable = true;
home.file.".mozilla/native-messaging-hosts/tridactyl.json".source = "${pkgs.tridactyl-native}/lib/mozilla/native-messaging-hosts/tridactyl.json";
home.file.".mozilla/native-messaging-hosts/tridactyl.json".source = "${upkgs.tridactyl-native}/lib/mozilla/native-messaging-hosts/tridactyl.json";
# some packages are enabled from their own module in ./modules
home.packages = with pkgs; [
home.packages = with upkgs; [
gcr # provides org.gnome.keyring.SystemPrompter
dix # nix diff
@ -266,7 +266,7 @@
kitty = {
enable = true;
package = pkgs.kitty;
package = upkgs.kitty;
font = {
name = "DepartureMono Nerd Font Mono";
@ -289,7 +289,7 @@
zen-browser = {
enable = true;
package = inputs.zen.packages."${pkgs.stdenv.hostPlatform.system}".twilight;
package = inputs.zen.packages.${system}.twilight;
};
mpv = {

View file

@ -1,10 +1,14 @@
{ config, inputs, lib, pkgs, ... }:
{
home.packages = with pkgs; [
(inputs.awww.packages.${pkgs.stdenv.hostPlatform.system}.awww.overrideAttrs (old: {
cargoBuildFlags = [ "--features=avif" ];
buildInputs = (old.buildInputs or []) ++ [ pkgs.dav1d ];
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ pkgs.pkg-config ];
inputs,
upkgs,
system,
...
}: {
home.packages = [
(inputs.awww.packages.${system}.awww.overrideAttrs (old: {
cargoBuildFlags = ["--features=avif"];
buildInputs = (old.buildInputs or []) ++ [upkgs.dav1d];
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [upkgs.pkg-config];
}))
];
}

View file

@ -1,8 +1,4 @@
{ config, inputs, pkgs, ... }:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
{...}: {
programs.hyprlock = {
enable = true;
@ -38,4 +34,3 @@ in
source = ./hypr;
};
}

View file

@ -1,8 +1,4 @@
{ config, inputs, pkgs, ... }:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
{...}: {
programs.rofi = {
enable = true;

View file

@ -1,8 +1,4 @@
{ config, inputs, lib, pkgs, ... }:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
{upkgs, ...}: {
programs.waybar = {
enable = true;
settings = {
@ -10,9 +6,9 @@ in
layer = "top";
position = "top";
height = 20;
modules-left = [ "hyprland/workspaces" "wlr/taskbar" "custom/media" ];
modules-center = [ "clock" ];
modules-right = [ "cpu" "memory" "network" "pulseaudio" "privacy" "tray" ];
modules-left = ["hyprland/workspaces" "wlr/taskbar" "custom/media"];
modules-center = ["clock"];
modules-right = ["cpu" "memory" "network" "pulseaudio" "privacy" "tray"];
# left
"hyprland/workspaces" = {
@ -96,7 +92,7 @@ in
};
};
style = pkgs.writeTextFile {
style = upkgs.writeTextFile {
name = "waybar-style.css";
text = builtins.readFile ./style.css;
};

View file

@ -1,10 +1,10 @@
{ config, inputs, lib, pkgs, ... }:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
home.packages = with pkgs; [
inputs.iamb.packages."${stdenv.hostPlatform.system}".default
inputs,
system,
...
}: {
home.packages = [
inputs.iamb.packages.${system}.default
];
xdg.configFile."iamb/config.toml" = {

View file

@ -1,4 +1,8 @@
{ config, lib, inputs, upkgs, ... }: let
{
inputs,
spkgs,
...
}: let
utils = inputs.nixcats.utils;
in {
imports = [
@ -14,19 +18,31 @@ in {
# this will add the overlays from ./overlays and also,
# add any plugins in inputs named "plugins-pluginName" to pkgs.neovimPlugins
# It will not apply to overall system, just nixCats.
addOverlays = /* (import ./overlays inputs) ++ */ [
addOverlays =
/*
(import ./overlays inputs) ++
*/
[
(utils.standardPluginOverlay inputs)
];
# see the packageDefinitions below.
# This says which of those to install.
packageNames = [ "auroranvim" ];
packageNames = ["auroranvim"];
luaPath = "${./.}";
# the .replace vs .merge options are for modules based on existing configurations,
# they refer to how multiple categoryDefinitions get merged together by the module.
# for useage of this section, refer to :h nixCats.flake.outputs.categories
categoryDefinitions.replace = ({ pkgs, settings, categories, extra, name, mkNvimPlugin, ... }@packageDef: {
categoryDefinitions.replace = {
pkgs,
settings,
categories,
extra,
name,
mkNvimPlugin,
...
} @ packageDef: {
lspsAndRuntimeDeps = {
general = with pkgs; [
ripgrep
@ -48,7 +64,7 @@ in {
rust-analyzer
];
zig = with pkgs; [
upkgs.zls # FIX: using upkgs version as zls is broken rn ;-;
spkgs.zls # FIX: using spkgs version as zls is broken rn ;-;
];
elixir = with pkgs; [
elixir-ls
@ -150,7 +166,7 @@ in {
};
extraWrapperArgs = {
test = [
'' --set CATTESTVAR2 "It worked again!"''
''--set CATTESTVAR2 "It worked again!"''
];
};
# lists of the functions you would have passed to
@ -161,26 +177,26 @@ in {
# vim.g.python3_host_prog
# or run from nvim terminal via :!<packagename>-python3
extraPython3Packages = {
test = (_:[]);
test = _: [];
};
# populates $LUA_PATH and $LUA_CPATH
extraLuaPackages = {
test = [ (_:[]) ];
test = [(_: [])];
};
};
});
# see :help nixCats.flake.outputs.packageDefinitions
packageDefinitions.replace = {
# these are the names of your packages
# you can include as many as you wish.
auroranvim = {pkgs , ... }: {
auroranvim = {pkgs, ...}: {
# they contain a settings set defined above
# see :help nixCats.flake.outputs.settings
settings = {
wrapRc = true;
# IMPORTANT:
# your alias may not conflict with your other packages.
aliases = [ "auroravim" "auravim" "foxyvim" "avix" "fvix" "auim" ];
aliases = ["auroravim" "auravim" "foxyvim" "avix" "fvix" "auim"];
};
# and a set of categories that you want
# (and other information to pass to lua)

View file

@ -1,5 +1,4 @@
{ config, inputs, lib, pkgs, ... }:
{
{inputs, ...}: {
imports = [
inputs.nixcord.homeModules.nixcord
];

View file

@ -1,8 +1,12 @@
{ inputs, lib, pkgs, ... }:
let
spicetifyPkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
{
inputs,
upkgs,
system,
...
}: let
spicetifyPkgs = inputs.spicetify-nix.legacyPackages.${system};
in {
imports = [ inputs.spicetify-nix.homeManagerModules.default ];
imports = [inputs.spicetify-nix.homeManagerModules.default];
programs.spicetify = {
enable = true;
@ -10,15 +14,17 @@ in {
adblock
shuffle
keyboardShortcut
({
src = (pkgs.fetchFromGitHub {
{
src =
(upkgs.fetchFromGitHub {
owner = "Spikerko";
repo = "spicy-lyrics";
rev = "568c83326aa6aba6ded28c95df6fcfb25cab3648";
hash = "sha256-lej93EDzGkmyrg5YMdPSqzrxlIfKsfaDBZosTvxoTNw=";
}) + /builds;
name = "spicy-lyrics.mjs";
})
+ /builds;
name = "spicy-lyrics.mjs";
}
];
theme = spicetifyPkgs.themes.comfy;
colorScheme = "Sakura";

View file

@ -1,8 +1,8 @@
{ config, inputs, lib, pkgs, ... }:
{
{upkgs, ...}: {
# optional dependencies can be found here:
# https://yazi-rs.github.io/docs/installation/
home.packages = with pkgs; [ # dependencies
home.packages = with upkgs; [
# dependencies
ripdrag
];
@ -22,9 +22,15 @@
keymap = {
mgr.prepend_keymap = [
# drag and drop!!
{ on = [ "<S-c>" ]; run = ''shell "ripdrag -x -a \"$@\"" --confirm''; }
{
on = ["<S-c>"];
run = ''shell "ripdrag -x -a \"$@\"" --confirm'';
}
# copy hovered file to clipboard
{ on = [ "<S-y>" ]; run = ''shell -- path=%h; echo "file://$path" | wl-copy -t text/uri-list''; }
{
on = ["<S-y>"];
run = ''shell -- path=%h; echo "file://$path" | wl-copy -t text/uri-list'';
}
];
};
@ -34,35 +40,121 @@
theme = {
icon = {
dirs = [
{ name = ".config"; text = ""; fg = "red"; }
{ name = ".git"; text = ""; fg = "blue"; }
{ name = ".github"; text = ""; fg = "blue"; }
{ name = ".npm"; text = ""; fg = "blue"; }
{ name = "Desktop"; text = ""; fg = "magenta"; }
{ name = "Documents"; text = ""; fg = "magenta"; }
{ name = "Downloads"; text = ""; fg = "red"; }
{ name = "Library"; text = ""; fg = "magenta"; }
{ name = "Movies"; text = ""; fg = "magenta"; }
{ name = "Music"; text = ""; fg = "magenta"; }
{ name = "Pictures"; text = ""; fg = "magenta"; }
{ name = "Public"; text = ""; fg = "magenta"; }
{ name = "Videos"; text = ""; fg = "red"; }
{
name = ".config";
text = "";
fg = "red";
}
{
name = ".git";
text = "";
fg = "blue";
}
{
name = ".github";
text = "";
fg = "blue";
}
{
name = ".npm";
text = "";
fg = "blue";
}
{
name = "Desktop";
text = "";
fg = "magenta";
}
{
name = "Documents";
text = "";
fg = "magenta";
}
{
name = "Downloads";
text = "";
fg = "red";
}
{
name = "Library";
text = "";
fg = "magenta";
}
{
name = "Movies";
text = "";
fg = "magenta";
}
{
name = "Music";
text = "";
fg = "magenta";
}
{
name = "Pictures";
text = "";
fg = "magenta";
}
{
name = "Public";
text = "";
fg = "magenta";
}
{
name = "Videos";
text = "";
fg = "red";
}
];
conds = [
# special files
{ "if" = "orphan"; text = ""; }
{ "if" = "link"; text = ""; }
{ "if" = "block"; text = ""; }
{ "if" = "char"; text = ""; }
{ "if" = "fifo"; text = ""; }
{ "if" = "sock"; text = ""; }
{ "if" = "sticky"; text = ""; }
{ "if" = "dummy"; text = ""; }
{
"if" = "orphan";
text = "";
}
{
"if" = "link";
text = "";
}
{
"if" = "block";
text = "";
}
{
"if" = "char";
text = "";
}
{
"if" = "fifo";
text = "";
}
{
"if" = "sock";
text = "";
}
{
"if" = "sticky";
text = "";
}
{
"if" = "dummy";
text = "";
}
# fallback
{ "if" = "dir"; text = ""; fg = "blue"; }
{ "if" = "exec"; text = ""; }
{ "if" = "!dir"; text = ""; }
{
"if" = "dir";
text = "";
fg = "blue";
}
{
"if" = "exec";
text = "";
}
{
"if" = "!dir";
text = "";
}
];
};
};
@ -76,7 +168,7 @@
force = true;
text = ''
[filechooser]
cmd=${pkgs.xdg-desktop-portal-termfilechooser}/share/xdg-desktop-portal-termfilechooser/yazi-wrapper.sh
cmd=${upkgs.xdg-desktop-portal-termfilechooser}/share/xdg-desktop-portal-termfilechooser/yazi-wrapper.sh
default_dir=$HOME
env=TERMCMD='kitty --title filechooser'
open_mode=suggested

View file

@ -1,9 +1,5 @@
{ config, inputs, pkgs, ... }:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
home.packages = with pkgs; [
{upkgs, ...}: {
home.packages = with upkgs; [
libnotify
];

View file

@ -1,20 +1,19 @@
{ config, inputs, lib, pkgs, ... }:
{
home.packages = with pkgs; [
{upkgs, ...}: {
home.packages = with upkgs; [
keepassxc
];
systemd.user.services.keepassxc = {
Unit = {
Description = "KeePassXC password manager";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
After = ["graphical-session-pre.target"];
PartOf = ["graphical-session.target"];
};
Service = {
Description = "${pkgs.keepassxc}/bin/keepassxc";
Description = "${upkgs.keepassxc}/bin/keepassxc";
Restart = "on-failure";
};
Install.WantedBy = [ "graphical-session.target" ];
Install.WantedBy = ["graphical-session.target"];
};
xdg.configFile."keepassxc/keepassxc.ini" = {

View file

@ -1,7 +1,11 @@
{ inputs, lib, pkgs, config, osConfig, ... }:
{
config,
osConfig,
...
}: {
# writes ./client.conf to ~/.config/pulse/client.conf
xdg.configFile."pulse/client.conf".text = builtins.replaceStrings
xdg.configFile."pulse/client.conf".text =
builtins.replaceStrings
["{uid}"]
# make sure ur user id is set!!!
["${toString osConfig.users.users.${config.home.username}.uid}"]

View file

@ -1,5 +1,4 @@
{ inputs, lib, pkgs, config, ... }:
{
{...}: {
# writes ./config to ~/.config/wireplumber
xdg.configFile."wireplumber" = {
recursive = true;

View file

@ -1,6 +1,5 @@
{ inputs, lib, pkgs, ... }:
{
home.packages = with pkgs; [
{upkgs, ...}: {
home.packages = with upkgs; [
fastfetch # displays system info! x3
];

View file

@ -1,5 +1,4 @@
{ inputs, lib, pkgs, ... }:
{
{...}: {
programs = {
zoxide = {
enable = true;

View file

@ -1,8 +1,4 @@
{ inputs, lib, pkgs, ... }:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
{...}: {
# the theme file template for zellij is in wallust
programs.zellij = {
@ -10,8 +6,8 @@ in
enableZshIntegration = false;
extraConfig = ''
theme "test"
show_startup_tips false
theme "test"
show_startup_tips false
'';
};
}

View file

@ -1,8 +1,4 @@
{ inputs, lib, pkgs, ... }:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
{upkgs, ...}: {
programs.zsh = {
enable = true;
enableCompletion = true;
@ -12,7 +8,7 @@ in
plugins = [
{
name = "vi-mode";
src = pkgs.zsh-vi-mode;
src = upkgs.zsh-vi-mode;
file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh";
}
];
@ -87,4 +83,3 @@ in
theme = "agnoster";
};
}

View file

@ -1,9 +1,5 @@
{ config, inputs, lib, pkgs, ... }:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
home.packages = with pkgs; [
{upkgs, ...}: {
home.packages = with upkgs; [
hellwal
];

View file

@ -1,9 +1,5 @@
{ config, inputs, lib, pkgs, ... }:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
home.packages = with pkgs; [
{upkgs, ...}: {
home.packages = with upkgs; [
wallust
];

View file

@ -1,9 +1,4 @@
{ config, inputs, pkgs, ... }:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
hyprland-git = inputs.hyprland-git.packages.${pkgs.stdenv.hostPlatform.system};
in
{
{...}: {
wayland.windowManager.hyprland = {
enable = true;
package = null;

View file

@ -1,14 +1,10 @@
{ config, inputs, pkgs, upkgs, ... }:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
{spkgs, ...}: {
wayland.windowManager.river = let
layout = "rivertile";
in {
enable = true;
xwayland.enable = true;
package = upkgs.river-classic; # FIX: using upkgs version as zls is broken rn ;-;
package = spkgs.river-classic; # FIX: using spkgs version as zls is broken rn ;-;
settings = let
main = "Super";

View file

@ -1,8 +1,4 @@
{ config, inputs, pkgs, ... }:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
{config, ...}: {
wayland.windowManager.sway = {
enable = true;
config = rec {
@ -10,15 +6,15 @@ in
terminal = "kitty";
# disable sway bar
bars = [ ];
bars = [];
# set border colors
#colors = {
#focused =
startup = [
{ command = "awww-daemon"; }
{ command = "waybar"; }
{command = "awww-daemon";}
{command = "waybar";}
];
keybindings = let

View file

@ -1,12 +1,10 @@
{
inputs,
pkgs,
upkgs,
spkgs,
root,
...
}: let
hyprland-git = inputs.hyprland-git.packages.${pkgs.stdenv.hostPlatform.system};
in {
}: {
imports = [
./hardware-configuration.nix
@ -19,8 +17,6 @@ in {
download-buffer-size = 524288000;
};
nixpkgs.config.allowUnfree = true;
# Use the systemd-boot EFI boot loader.
boot = rec {
initrd.kernelModules = ["amdgpu"];
@ -30,8 +26,8 @@ in {
efi.canTouchEfiVariables = true;
};
# kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-latest-lto-x86_64-v4;
kernelPackages = pkgs.linuxPackages_latest;
# kernelPackages = upkgs.cachyosKernels.linuxPackages-cachyos-latest-lto-x86_64-v4;
kernelPackages = upkgs.linuxPackages_latest;
kernelModules = ["v4l2loopback"];
extraModulePackages = with kernelPackages; [v4l2loopback];
@ -107,7 +103,7 @@ in {
enable = true;
};
extraPortals = with pkgs; [
extraPortals = with upkgs; [
xdg-desktop-portal-termfilechooser
];
@ -134,7 +130,7 @@ in {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
extraPackages = with upkgs; [
libva-vdpau-driver
libvdpau-va-gl
];
@ -165,7 +161,7 @@ in {
udev = {
enable = true;
packages = with pkgs; [
packages = with upkgs; [
# adds via support for keyboards and stuffs :3 (needs reboot)
via
@ -208,9 +204,9 @@ in {
uid = 1000;
extraGroups = ["wheel" "disk" "input" "video" "audio" "networkmanager" "games"];
shell = pkgs.zsh;
shell = upkgs.zsh;
packages = with pkgs; [
packages = with upkgs; [
flatpak
tree
];
@ -220,14 +216,6 @@ in {
};
};
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.aurora = import ../../homes/aurora;
extraSpecialArgs = {inherit inputs upkgs root;};
};
programs = {
# nix-ld runs unpatched dynamic binaries on nixos :3
nix-ld.enable = true;
@ -251,12 +239,12 @@ in {
# to work properly on hyprland
hyprland = {
enable = true;
package = hyprland-git.hyprland;
portalPackage = hyprland-git.xdg-desktop-portal-hyprland;
package = upkgs.hyprland-git.hyprland;
portalPackage = upkgs.hyprland-git.xdg-desktop-portal-hyprland;
};
river-classic = {
package = upkgs.river-classic; # FIX: using upkgs version as zls is broken rn ;-;
package = spkgs.river-classic; # FIX: using spkgs version as zls is broken rn ;-;
enable = true;
};
@ -268,7 +256,7 @@ in {
# steam has to be enabled here
steam = {
enable = true;
package = pkgs.millennium-steam;
package = upkgs.millennium-steam;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
@ -277,7 +265,7 @@ in {
alvr = {
enable = true;
package = upkgs.alvr;
package = spkgs.alvr;
openFirewall = true;
};
@ -300,7 +288,7 @@ in {
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
environment.systemPackages = with upkgs; [
# linux packages!!!
linuxPackages.v4l2loopback
@ -325,17 +313,17 @@ in {
# waydroid needs it apparently for clipboard sharing??
wl-clipboard
(waydroid.override {
python3Packages = pkgs.python312Packages;
python3Packages = upkgs.python312Packages;
})
# game stuff :3
(lutris.override {
extraPkgs = pkgs: [
extraupkgs = upkgs: [
libadwaita
];
})
(steam.override {
extraPkgs = pkgs: [
extraupkgs = upkgs: [
nss
xorg.libX11
xorg.libXScrnSaver
@ -356,7 +344,7 @@ in {
# Most users should NEVER change this value after the initial install, for any reason,
# even if you've upgraded your system to a new NixOS release.
#
# This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
# This value does NOT affect the Nixupkgs version your packages and OS are pulled from,
# so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how
# to actually do that.
#

View file

@ -1,55 +1,58 @@
# 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")
config,
lib,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/257dd2c7-59b1-431e-a5a1-c7db00b3312b";
fileSystems."/" = {
device = "/dev/disk/by-uuid/257dd2c7-59b1-431e-a5a1-c7db00b3312b";
fsType = "btrfs";
options = [ "subvol=@" ];
options = ["subvol=@"];
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/257dd2c7-59b1-431e-a5a1-c7db00b3312b";
fileSystems."/home" = {
device = "/dev/disk/by-uuid/257dd2c7-59b1-431e-a5a1-c7db00b3312b";
fsType = "btrfs";
options = [ "subvol=@home" ];
options = ["subvol=@home"];
};
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/257dd2c7-59b1-431e-a5a1-c7db00b3312b";
fileSystems."/nix" = {
device = "/dev/disk/by-uuid/257dd2c7-59b1-431e-a5a1-c7db00b3312b";
fsType = "btrfs";
options = [ "subvol=@nix" ];
options = ["subvol=@nix"];
};
fileSystems."/games" =
{ device = "/dev/disk/by-uuid/257dd2c7-59b1-431e-a5a1-c7db00b3312b";
fileSystems."/games" = {
device = "/dev/disk/by-uuid/257dd2c7-59b1-431e-a5a1-c7db00b3312b";
fsType = "btrfs";
options = [ "subvol=@games" ];
options = ["subvol=@games"];
};
fileSystems."/data" =
{ device = "/dev/disk/by-uuid/257dd2c7-59b1-431e-a5a1-c7db00b3312b";
fileSystems."/data" = {
device = "/dev/disk/by-uuid/257dd2c7-59b1-431e-a5a1-c7db00b3312b";
fsType = "btrfs";
options = [ "subvol=@data" ];
options = ["subvol=@data"];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/63DC-1AEB";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/63DC-1AEB";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
options = ["fmask=0077" "dmask=0077"];
};
swapDevices = [ ];
swapDevices = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's

View file

@ -1,5 +1,5 @@
{
pkgs,
upkgs,
lib,
config,
...
@ -12,7 +12,8 @@ in {
};
config = lib.mkIf enabled {
nixpkgs.overlays = [
nixpkgs.channels.default = {
upkgs.overlays = [
(self: super: {
amdgpu-ignore-ctx-privileges = super.fetchpatch {
name = "cap_sys_nice_begone.patch";
@ -21,11 +22,12 @@ in {
};
})
];
};
boot.kernelPatches = [
{
name = "amdgpu-ignore-ctx-privileges";
patch = pkgs.amdgpu-ignore-ctx-privileges;
patch = upkgs.amdgpu-ignore-ctx-privileges;
}
];
};

28
nixpkgs.nix Normal file
View file

@ -0,0 +1,28 @@
{
inputs,
system,
...
}: {
nixpkgs.channels.default = {
# nixpkgs-unstable
upkgs = {
inherit system;
source = inputs.nixpkgs-unstable;
overlays = with inputs; [
cachyos.overlays.pinned
millennium.overlays.default
(import ./overlays.nix {inherit inputs;})
];
config.allowUnfree = true;
};
# nixpkgs-staging
spkgs = {
inherit system;
source = inputs.nixpkgs-staging;
overlays = [];
config.allowUnfree = true;
};
};
}

View file

@ -1,3 +1,9 @@
# NOTE: `system` is provided by Cerulean
{
inputs,
system,
...
}: [
(self: super: {
ekphos = import ../packages/ekphos {
pkgs = super;
@ -10,4 +16,7 @@
})
];
});
hyprland-git = inputs.hyprland-git.packages.${system};
})
]

23
snow.nix Normal file
View file

@ -0,0 +1,23 @@
{cerulean, ...} @ inputs:
cerulean.mkNexus ./. (self: {
nexus = {
specialArgs = {inherit inputs;};
extraPkgConfig = {
config.allowUnfree = true;
};
extraModules = with inputs; [
home-manager.nixosModules.home-manager
];
nodes = {
nixarawrui = {
system = "x86_64-linux";
extraModules = with inputs; [
sddm-silent.nixosModules.default
];
};
};
};
})