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
|
let
|
||||||
pcUser = "alex";
|
pcUser = "alex";
|
||||||
pcSystem = "x86_64-linux";
|
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;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
./config/hosts/${hostname}
|
./config/hosts/${hostname}
|
||||||
|
@ -37,19 +39,8 @@
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
## ---- personal computers (linux) ----
|
## ---- personal computers (linux) ----
|
||||||
nixos76 = mkPcSystem {
|
nixos76 = mkPcSystem { hostname = "nixos76"; };
|
||||||
hostname = "nixos76";
|
thelio76 = mkPcSystem { hostname = "thelio76"; };
|
||||||
user = pcUser;
|
|
||||||
system = pcSystem;
|
|
||||||
inherit inputs;
|
|
||||||
};
|
|
||||||
|
|
||||||
thelio76 = mkPcSystem {
|
|
||||||
hostname = "thelio76";
|
|
||||||
user = pcUser;
|
|
||||||
system = pcSystem;
|
|
||||||
inherit inputs;
|
|
||||||
};
|
|
||||||
|
|
||||||
## ---- servers ----
|
## ---- servers ----
|
||||||
ursa-minor = nixpkgs.lib.nixosSystem {
|
ursa-minor = nixpkgs.lib.nixosSystem {
|
||||||
|
|
Loading…
Reference in New Issue