Documentation and cleaning flake.nix

This commit is contained in:
Trevor Vallender 2023-10-09 16:34:34 +01:00
parent 05c373d130
commit ad7a31e513
1 changed files with 41 additions and 14 deletions

View File

@ -19,6 +19,10 @@
outputs = inputs@{ nixpkgs, home-manager, devenv, hyprland, hyprcontrib, codeium, ... }: { outputs = inputs@{ nixpkgs, home-manager, devenv, hyprland, hyprcontrib, codeium, ... }: {
nixosConfigurations = { nixosConfigurations = {
######################################################################################
# ritchie (Work laptop)
# Named after Dennis Ritchie, co-creator of UNIX and C
######################################################################################
ritchie = nixpkgs.lib.nixosSystem { # My work machine ritchie = nixpkgs.lib.nixosSystem { # My work machine
system = "x86_64-linux"; system = "x86_64-linux";
@ -49,6 +53,11 @@
} }
]; ];
}; };
######################################################################################
# thompson (Personl laptop)
# Named after Ken Thompson, co-creator of UNIX and C
######################################################################################
thompson = nixpkgs.lib.nixosSystem { # My personal laptop thompson = nixpkgs.lib.nixosSystem { # My personal laptop
system = "x86_64-linux"; system = "x86_64-linux";
@ -58,7 +67,15 @@
./system/thompson/thompson.nix ./system/thompson/thompson.nix
hyprland.nixosModules.default hyprland.nixosModules.default
{ programs.hyprland.enable = true; } {
programs.hyprland = {
enable = true;
enableNvidiaPatches = true;
xwayland = {
enable = true;
};
};
}
home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager {
home-manager = { home-manager = {
@ -70,16 +87,10 @@
]; ];
}; };
miyamoto = nixpkgs.lib.nixosSystem { # Kid's game and music box ######################################################################################
system = "x86_64-linux"; # kernighan (VPS hosted with Hetzner)
# Named after Brian Kernighan, key UNIX figure and author
specialArgs.inputs = inputs; ######################################################################################
modules = [
./system/miyamoto/miyamoto.nix
];
};
kernighan = nixpkgs.lib.nixosSystem { # Pi home server kernighan = nixpkgs.lib.nixosSystem { # Pi home server
system = "aarch64-linux"; system = "aarch64-linux";
@ -90,15 +101,31 @@
]; ];
}; };
eno = nixpkgs.lib.nixosSystem { # Music player/alarm clock ######################################################################################
system = "aarch64-linux"; # miyamoto (Butchered laptop—music and games for the kids
# Named after Shigery Miyamoto, creator of Donkey Kong, Mario and X
######################################################################################
miyamoto = nixpkgs.lib.nixosSystem { # Kid's game and music box
system = "x86_64-linux";
specialArgs.inputs = inputs; specialArgs.inputs = inputs;
modules = [ modules = [
./system/eno/eno.nix ./system/miyamoto/miyamoto.nix
]; ];
}; };
######################################################################################
# Other, non-Nix systems (for completeness/documentation):
# mcilroy (printer)
# Named after Doug McIlroy, who proposed UNIX pipes, developed a bunch of UNIX stuff
# and wrote one iteration of roff.
# Home Assistant on a Raspberry Pi 4
# Todo:
# Internet Radio
# Kids laptop
######################################################################################
}; };
}; };
} }