Compare commits

...

3 commits

Author SHA1 Message Date
660149f46b
Fix aliases, nh, etc 2025-05-22 21:19:25 -04:00
471dfd605e
Re add open new instance 2025-05-21 10:46:28 -04:00
dddde3aea9
Some fixes 2025-05-19 14:56:09 -04:00
20 changed files with 125 additions and 129 deletions

125
flake.lock generated
View file

@ -10,11 +10,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1745630506, "lastModified": 1747575206,
"narHash": "sha256-bHCFgGeu8XjWlVuaWzi3QONjDW3coZDqSHvnd4l7xus=", "narHash": "sha256-NwmAFuDUO/PFcgaGGr4j3ozG9Pe5hZ/ogitWhY+D81k=",
"owner": "ryantm", "owner": "ryantm",
"repo": "agenix", "repo": "agenix",
"rev": "96e078c646b711aee04b82ba01aefbff87004ded", "rev": "4835b1dc898959d8547a871ef484930675cb47f1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -72,11 +72,11 @@
"fromYaml": "fromYaml" "fromYaml": "fromYaml"
}, },
"locked": { "locked": {
"lastModified": 1745523430, "lastModified": 1746562888,
"narHash": "sha256-EAYWV+kXbwsH+8G/8UtmcunDeKwLwSOyfcmzZUkWE/c=", "narHash": "sha256-YgNJQyB5dQiwavdDFBMNKk1wyS77AtdgDk/VtU6wEaI=",
"owner": "SenchoPens", "owner": "SenchoPens",
"repo": "base16.nix", "repo": "base16.nix",
"rev": "58bfe2553d937d8af0564f79d5b950afbef69717", "rev": "806a1777a5db2a1ef9d5d6f493ef2381047f2b89",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -220,11 +220,11 @@
"firefox-gnome-theme": { "firefox-gnome-theme": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1744642301, "lastModified": 1747677437,
"narHash": "sha256-5A6LL7T0lttn1vrKsNOKUk9V0ittdW0VEqh6AtefxJ4=", "narHash": "sha256-c3oiw6RysUVxRqkv39gxhiO1WjfvuEzZw4PemN0C7Kk=",
"owner": "rafaelmardojai", "owner": "rafaelmardojai",
"repo": "firefox-gnome-theme", "repo": "firefox-gnome-theme",
"rev": "59e3de00f01e5adb851d824cf7911bd90c31083a", "rev": "6b2061ac6faf5dfb52d5b41dca98fa0c022b2b91",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -338,7 +338,6 @@
"inputs": { "inputs": {
"nixpkgs-lib": [ "nixpkgs-lib": [
"stylix", "stylix",
"nur",
"nixpkgs" "nixpkgs"
] ]
}, },
@ -393,27 +392,6 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_3": {
"inputs": {
"systems": [
"stylix",
"systems"
]
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"fromYaml": { "fromYaml": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -481,16 +459,16 @@
"gnome-shell": { "gnome-shell": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1732369855, "lastModified": 1744584021,
"narHash": "sha256-JhUWbcYPjHO3Xs3x9/Z9RuqXbcp5yhPluGjwsdE2GMg=", "narHash": "sha256-0RJ4mJzf+klKF4Fuoc8VN8dpQQtZnKksFmR2jhWE1Ew=",
"owner": "GNOME", "owner": "GNOME",
"repo": "gnome-shell", "repo": "gnome-shell",
"rev": "dadd58f630eeea41d645ee225a63f719390829dc", "rev": "52c517c8f6c199a1d6f5118fae500ef69ea845ae",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "GNOME", "owner": "GNOME",
"ref": "47.2", "ref": "48.1",
"repo": "gnome-shell", "repo": "gnome-shell",
"type": "github" "type": "github"
} }
@ -551,11 +529,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1746369725, "lastModified": 1747565775,
"narHash": "sha256-m3ai7LLFYsymMK0uVywCceWfUhP0k3CALyFOfcJACqE=", "narHash": "sha256-B6jmKHUEX1jxxcdoYHl7RVaeohtAVup8o3nuVkzkloA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "1a1793f6d940d22c6e49753548c5b6cb7dc5545d", "rev": "97118a310eb8e13bc1b9b12d67267e55b7bee6c8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -572,11 +550,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1746369725, "lastModified": 1747279714,
"narHash": "sha256-m3ai7LLFYsymMK0uVywCceWfUhP0k3CALyFOfcJACqE=", "narHash": "sha256-UdxlE8yyrKiGq3bgGyJ78AdFwh+fuRAruKtyFY5Zq5I=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "1a1793f6d940d22c6e49753548c5b6cb7dc5545d", "rev": "954615c510c9faa3ee7fb6607ff72e55905e69f2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -585,6 +563,26 @@
"type": "github" "type": "github"
} }
}, },
"nh": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1747943020,
"narHash": "sha256-LlMUdltEdGxVLDZRSDQn3/i/WWn7Jakdz4wQxLxzfZ8=",
"owner": "nix-community",
"repo": "nh",
"rev": "24c12228e1f1e4fc953e37283fe442ca169951ed",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nh",
"type": "github"
}
},
"nix-filter": { "nix-filter": {
"locked": { "locked": {
"lastModified": 1731533336, "lastModified": 1731533336,
@ -689,11 +687,11 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1746328495, "lastModified": 1747542820,
"narHash": "sha256-uKCfuDs7ZM3QpCE/jnfubTg459CnKnJG/LwqEVEdEiw=", "narHash": "sha256-GaOZntlJ6gPPbbkTLjbd8BMWaDYafhuuYRNrxCGnPJw=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "979daf34c8cacebcd917d540070b52a3c2b9b16e", "rev": "292fa7d4f6519c074f0a50394dbbe69859bb6043",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -705,11 +703,11 @@
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1745930157, "lastModified": 1747327360,
"narHash": "sha256-y3h3NLnzRSiUkYpnfvnS669zWZLoqqI6NprtLQ+5dck=", "narHash": "sha256-LSmTbiq/nqZR9B2t4MRnWG7cb0KVNU70dB7RT4+wYK4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "46e634be05ce9dc6d4db8e664515ba10b78151ae", "rev": "e06158e58f3adee28b139e9c2bcfcc41f8625b46",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -721,7 +719,10 @@
}, },
"nur": { "nur": {
"inputs": { "inputs": {
"flake-parts": "flake-parts_2", "flake-parts": [
"stylix",
"flake-parts"
],
"nixpkgs": [ "nixpkgs": [
"stylix", "stylix",
"nixpkgs" "nixpkgs"
@ -750,11 +751,11 @@
"utils": "utils" "utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1746393339, "lastModified": 1747647098,
"narHash": "sha256-7PXmCQfExrIOh8ISeruCWnmi3C1h/QjzfWyLA8FRRm8=", "narHash": "sha256-q97sL76AwyTbykQPNB/iHuxhUtR5MslJQdKPYIM9pXQ=",
"owner": "wamserma", "owner": "wamserma",
"repo": "flake-programs-sqlite", "repo": "flake-programs-sqlite",
"rev": "d61db790e37ccdb961510746bbfdf615fd085c99", "rev": "687ecefe4c7aa963d6e591e39045bcdfa3d2f7ae",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -787,6 +788,7 @@
"firefox-gnome-theme": "firefox-gnome-theme", "firefox-gnome-theme": "firefox-gnome-theme",
"grapevine": "grapevine", "grapevine": "grapevine",
"home-manager": "home-manager_2", "home-manager": "home-manager_2",
"nh": "nh",
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs_4",
"programsdb": "programsdb", "programsdb": "programsdb",
"stylix": "stylix", "stylix": "stylix",
@ -818,7 +820,7 @@
"base16-vim": "base16-vim", "base16-vim": "base16-vim",
"firefox-gnome-theme": "firefox-gnome-theme_2", "firefox-gnome-theme": "firefox-gnome-theme_2",
"flake-compat": "flake-compat_4", "flake-compat": "flake-compat_4",
"flake-utils": "flake-utils_3", "flake-parts": "flake-parts_2",
"git-hooks": "git-hooks", "git-hooks": "git-hooks",
"gnome-shell": "gnome-shell", "gnome-shell": "gnome-shell",
"home-manager": "home-manager_3", "home-manager": "home-manager_3",
@ -832,11 +834,11 @@
"tinted-zed": "tinted-zed" "tinted-zed": "tinted-zed"
}, },
"locked": { "locked": {
"lastModified": 1746395987, "lastModified": 1747675820,
"narHash": "sha256-Na6MAPSWIWzxsgxwcxLhQ160ExvyyhCdC1JDcBA8vW8=", "narHash": "sha256-Z8o3Tu/FN4GOtZl4WNY0Gcp/Uzuz06ILkRy0oPVteM0=",
"owner": "danth", "owner": "danth",
"repo": "stylix", "repo": "stylix",
"rev": "70f331c8e7da588e07e70cef15a114f9fcec3cee", "rev": "f8833c5e0c64287cd51a27e6061a88f4225b6b70",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -925,17 +927,16 @@
"tinted-kitty": { "tinted-kitty": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1716423189, "lastModified": 1735730497,
"narHash": "sha256-2xF3sH7UIwegn+2gKzMpFi3pk5DlIlM18+vj17Uf82U=", "narHash": "sha256-4KtB+FiUzIeK/4aHCKce3V9HwRvYaxX+F1edUrfgzb8=",
"owner": "tinted-theming", "owner": "tinted-theming",
"repo": "tinted-kitty", "repo": "tinted-kitty",
"rev": "eb39e141db14baef052893285df9f266df041ff8", "rev": "de6f888497f2c6b2279361bfc790f164bfd0f3fa",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "tinted-theming", "owner": "tinted-theming",
"repo": "tinted-kitty", "repo": "tinted-kitty",
"rev": "eb39e141db14baef052893285df9f266df041ff8",
"type": "github" "type": "github"
} }
}, },
@ -1031,11 +1032,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1744611115, "lastModified": 1747562021,
"narHash": "sha256-7WsdYgA6bh9dytXdLKQYUkUdSux6fNo7SZXYqMJx72k=", "narHash": "sha256-XfF+5zjoWbAcAiGNb++og6yDGJRwWYpADr9P6WuieQA=",
"owner": "viperML", "owner": "viperML",
"repo": "wrapper-manager", "repo": "wrapper-manager",
"rev": "a4990b7da8e7845974031599e7f6104226cfb43e", "rev": "f2b0bec5140403cf24cae96f6764d97b5d59b0e2",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -24,6 +24,10 @@
url = "github:viperML/wrapper-manager"; url = "github:viperML/wrapper-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nh = {
url = "github:nix-community/nh";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = inputs: let outputs = inputs: let

5
modules/common/bat.nix Normal file
View file

@ -0,0 +1,5 @@
{
lib,
pkgs,
...
}: {environment.shellAliases.cat = "${lib.getExe pkgs.bat} --theme Nord";}

View file

@ -1 +1 @@
{nix.settings.experimental-features = ["nix-command" "flakes"];} {nix.settings.experimental-features = ["nix-command" "flakes" "repl-flake"];}

5
modules/common/eza.nix Normal file
View file

@ -0,0 +1,5 @@
{
lib,
pkgs,
...
}: {environment.shellAliases.ls = "${lib.getExe pkgs.eza} --all --icons --hyperlink --group-directories-first --color=always";}

View file

@ -7,30 +7,6 @@
''; '';
}; };
environment = { environment.shells = [pkgs.fish];
shells = [pkgs.fish];
shellAliases = {
# Utility
ls = "eza";
cat = "bat";
rm = "gio trash";
free = "free -h";
neofetch = "neowofetch";
shutdown = "shutdown now";
# Git
clone = "gh repo clone";
create = "gh repo create";
push = "git push";
commit = "git commit -am";
# NixOS
clean = "nh clean all";
rebuild = "nh os switch";
rebuildServer = "nixos-rebuild switch --flake ~/.config/nixos#quadraticserver --target-host quadradical@192.168.0.132 --use-remote-sudo";
update = "pushd ~/.config/nixos && nix flake update && popd && rebuild";
};
};
users.defaultUserShell = pkgs.fish; users.defaultUserShell = pkgs.fish;
} }

1
modules/common/free.nix Normal file
View file

@ -0,0 +1 @@
{pkgs, ...}: {environment.shellAliases.free = "${pkgs.procps}/bin/free -h";}

View file

@ -1,4 +1,8 @@
{pkgs, ...}: { {
pkgs,
lib,
...
}: {
programs.git = { programs.git = {
enable = true; enable = true;
config = { config = {
@ -17,5 +21,17 @@
gpg.format = "ssh"; gpg.format = "ssh";
}; };
}; };
environment.systemPackages = [pkgs.gh]; environment = {
systemPackages = [pkgs.gh];
shellAliases = let
gitExe = lib.meta.getExe pkgs.git;
ghExe = lib.meta.getExe pkgs.gh;
in {
clone = "${ghExe} repo clone";
create = "${ghExe} repo create";
push = "${gitExe} push";
commit = "${gitExe} commit -am";
};
};
} }

View file

@ -0,0 +1,3 @@
{pkgs, ...}: {
environment.shellAliases.neofetch = "${pkgs.hyfetch}/bin/neowofetch --config ${./neofetch.conf}";
}

View file

@ -1,7 +1,23 @@
{ {
inputs,
pkgs,
lib,
...
}: let
pkg = inputs.nh.packages.${pkgs.system}.default;
exe = lib.getExe pkg;
in {
programs.nh = { programs.nh = {
enable = true; enable = true;
package = pkg;
clean.enable = true; clean.enable = true;
flake = "/home/quadradical/.config/nixos"; flake = "/home/quadradical/.config/nixos";
}; };
environment.shellAliases = {
clean = "${exe} clean all";
update = "pushd ~/.config/nixos && nix flake update && popd && rebuild";
rebuild = "${exe} os switch";
rebuildServer = "${exe} os switch --hostname quadraticserver --target-host 192.168.0.132";
};
} }

View file

@ -1,7 +1,7 @@
{pkgs, ...}: { {pkgs, ...}: {
environment.systemPackages = [(pkgs.writeShellScriptBin "sudo" "run0 $@")]; # environment.systemPackages = [(pkgs.writeShellScriptBin "sudo" "run0 $@")];
security = { # security = {
sudo.enable = false; # sudo.enable = false;
pam.services.systemd-run0 = {}; # pam.services.systemd-run0 = {};
}; # };
} }

1
modules/common/trash.nix Normal file
View file

@ -0,0 +1 @@
{pkgs, ...}: {environment.shellAliases.rm = "${pkgs.glib}/bin/gio trash";}

View file

@ -85,7 +85,6 @@
"compiz-windows-effect@hermes83.github.com" "compiz-windows-effect@hermes83.github.com"
"user-theme@gnome-shell-extensions.gcampax.github.com" "user-theme@gnome-shell-extensions.gcampax.github.com"
"display-brightness-ddcutil@themightydeity.github.com" "display-brightness-ddcutil@themightydeity.github.com"
"system-monitor@gnome-shell-extensions.gcampax.github.com"
"launch-new-instance@gnome-shell-extensions.gcampax.github.com" "launch-new-instance@gnome-shell-extensions.gcampax.github.com"
]; ];
disabled-extensions = [ disabled-extensions = [

View file

@ -15,6 +15,7 @@
just-perfection just-perfection
burn-my-windows burn-my-windows
fullscreen-avoider fullscreen-avoider
launch-new-instance
compiz-windows-effect compiz-windows-effect
rounded-window-corners-reborn rounded-window-corners-reborn
brightness-control-using-ddcutil brightness-control-using-ddcutil

View file

@ -4,7 +4,6 @@
tuba tuba
gimp gimp
deno deno
dart
ptyxis ptyxis
heroic heroic
aspell aspell
@ -15,14 +14,10 @@
r2modman r2modman
pciutils pciutils
resources resources
alejandra
impression
libreoffice libreoffice
wl-clipboard wl-clipboard
protontricks
prismlauncher prismlauncher
authenticator authenticator
android-studio
nexusmods-app-unfree nexusmods-app-unfree
hunspellDicts.en_CA-large hunspellDicts.en_CA-large
]; ];

View file

@ -100,7 +100,7 @@
"nix.serverPath" = lib.meta.getExe pkgs.nil; "nix.serverPath" = lib.meta.getExe pkgs.nil;
"nix.serverSettings" = { "nix.serverSettings" = {
"nil" = { "nil" = {
"formatting" = {"command" = ["alejandra"];}; "formatting" = {"command" = [(lib.getExe pkgs.alejandra)];};
}; };
}; };
"indentRainbow.ignoreErrorLanguages" = ["*"]; "indentRainbow.ignoreErrorLanguages" = ["*"];

View file

@ -1,6 +0,0 @@
{pkgs, ...}: {
wrappers.bat = {
basePackage = pkgs.bat;
flags = ["--theme" "Nord"];
};
}

View file

@ -1,12 +0,0 @@
{pkgs, ...}: {
wrappers.eza = {
basePackage = pkgs.eza;
flags = [
"--all"
"--icons"
"--hyperlink"
"--color=always"
"--group-directories-first"
];
};
}

View file

@ -1,9 +0,0 @@
{pkgs, ...}: {
wrappers.neofetch = {
basePackage = pkgs.hyfetch; # Neowofetch
flags = [
"--config"
./neofetch.conf
];
};
}