Systemd-ify Waybar, move aliases to individualized places, more Sway and Jovian changes

This commit is contained in:
Bun 2025-05-10 11:27:52 -04:00
parent 949cb85b2b
commit d257cd9bf5
14 changed files with 212 additions and 143 deletions

View file

@ -4,6 +4,9 @@
stable.url = "nixpkgs/nixos-24.11";
unstable.url = "nixpkgs/nixos-unstable";
# Flake helpers
flake-utils.url = "github:numtide/flake-utils";
# System inputs
disko = {
url = "github:nix-community/disko";
@ -48,6 +51,8 @@
stable,
unstable,
flake-utils,
disko,
impermanence,
lanzaboote,
@ -63,34 +68,31 @@
...
}@inputs:
let
mkNix = modules: channel: channel.lib.nixosSystem {
inherit modules;
specialArgs = inputs;
};
mkHome = modules: channel: arch: hm.lib.homeManagerConfiguration {
inherit modules;
pkgs = builtins.getAttr arch channel.legacyPackages;
extraSpecialArgs = inputs;
};
in {
# nh os switch /path -H host
nixosConfigurations = {
tower = mkNix [ ./hosts/tower ] stable; # Main Desktop
inputs.flake-utils.lib.eachDefaultSystemPassThrough (system:
let
mkNix = modules: channel: channel.lib.nixosSystem {
inherit modules;
specialArgs = inputs;
};
mkHome = modules: channel: hm.lib.homeManagerConfiguration {
inherit modules;
pkgs = channel.legacyPackages.${system};
extraSpecialArgs = inputs;
};
in {
nixosConfigurations = {
tower = mkNix [ ./hosts/tower ] stable;
intuos = mkNix [ ./hosts/intuos ] stable; # Wacom Intuos Tablet
jupiter = mkNix [ ./hosts/jupiter ] unstable; # Steam Deck
redmond = mkNix [ ./hosts/redmond ] stable; # Lenovo Dual-Boot
intuos = mkNix [ ./hosts/intuos ] stable;
jupiter = mkNix [ ./hosts/jupiter ] unstable;
redmond = mkNix [ ./hosts/redmond ] stable;
midas = mkNix [ ./hosts/midas ] stable; # Dell Optiplex 5040
kitty = mkNix [ ./hosts/kitty ] stable; # Dell Optiplex 7010
prophet = mkNix [ ./hosts/prophet ] stable; # Oracle Neoverse-N1
};
# nh home switch /path -c arch
homeConfigurations = {
x86 = mkHome [ ./modules/home ] stable "x86_64-linux";
aarch = mkHome [ ./modules/home ] stable "aarch64-linux";
};
};
midas = mkNix [ ./hosts/midas ] stable;
kitty = mkNix [ ./hosts/kitty ] stable;
prophet = mkNix [ ./hosts/prophet ] stable;
};
homeConfigurations.bun = mkHome [ ./modules/home ] stable;
}
);
}