thelio76: cleanup
This commit is contained in:
parent
58544d8e7a
commit
0f2162169c
21
flake.nix
21
flake.nix
|
@ -21,11 +21,13 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, firefox-addons, ... }@inputs:
|
||||
outputs = { self, nixpkgs, home-manager, firefox-addons, ... }@flake-inputs:
|
||||
let
|
||||
pcUser = "alex";
|
||||
pcSystem = "x86_64-linux";
|
||||
mkPcSystem = { user, hostname, system, inputs }: nixpkgs.lib.nixosSystem {
|
||||
|
||||
# This helper function generates a nixos system for a linux PC setup. It defaults the username, architecture, and flake inputs if not provided.
|
||||
mkPcSystem = { user ? pcUser, hostname, system ? pcSystem, inputs ? flake-inputs }: nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
./config/hosts/${hostname}
|
||||
|
@ -37,19 +39,8 @@
|
|||
{
|
||||
nixosConfigurations = {
|
||||
## ---- personal computers (linux) ----
|
||||
nixos76 = mkPcSystem {
|
||||
hostname = "nixos76";
|
||||
user = pcUser;
|
||||
system = pcSystem;
|
||||
inherit inputs;
|
||||
};
|
||||
|
||||
thelio76 = mkPcSystem {
|
||||
hostname = "thelio76";
|
||||
user = pcUser;
|
||||
system = pcSystem;
|
||||
inherit inputs;
|
||||
};
|
||||
nixos76 = mkPcSystem { hostname = "nixos76"; };
|
||||
thelio76 = mkPcSystem { hostname = "thelio76"; };
|
||||
|
||||
## ---- servers ----
|
||||
ursa-minor = nixpkgs.lib.nixosSystem {
|
||||
|
|
Loading…
Reference in New Issue