2022-01-06 21:14:02 -05:00
|
|
|
{
|
|
|
|
description = "System conf";
|
|
|
|
inputs = rec {
|
|
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
|
|
|
|
|
|
nur.url = "github:nix-community/NUR";
|
|
|
|
|
|
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
outputs = { self,
|
|
|
|
nixpkgs,
|
|
|
|
home-manager,
|
|
|
|
...}@inputs:
|
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
username = "kiana";
|
|
|
|
moduleArgs = inputs // { inherit system username; };
|
|
|
|
lib = nixpkgs.lib;
|
2022-01-11 13:01:08 -05:00
|
|
|
|
|
|
|
modulesFor = system:
|
|
|
|
[
|
|
|
|
{ _module.args = moduleArgs; }
|
|
|
|
./common/config
|
|
|
|
./${system}/config
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{ home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
users.${username} = import ./${system}/home-manager;
|
|
|
|
extraSpecialArgs = moduleArgs;
|
|
|
|
}; }
|
|
|
|
];
|
2022-01-06 21:14:02 -05:00
|
|
|
in {
|
|
|
|
nixosConfigurations = {
|
2022-01-06 22:17:01 -05:00
|
|
|
"kiana-desktop" = lib.makeOverridable lib.nixosSystem {
|
2022-01-06 21:14:02 -05:00
|
|
|
inherit system;
|
2022-01-11 13:01:08 -05:00
|
|
|
modules = modulesFor "desktop";
|
2022-01-06 21:14:02 -05:00
|
|
|
};
|
2022-01-06 22:16:45 -05:00
|
|
|
|
2022-01-06 22:17:01 -05:00
|
|
|
"kiana-laptop" = lib.makeOverridable lib.nixosSystem {
|
2022-01-06 22:16:45 -05:00
|
|
|
inherit system;
|
2022-01-11 13:01:08 -05:00
|
|
|
modules = modulesFor "laptop";
|
2022-01-06 22:16:45 -05:00
|
|
|
};
|
2022-01-06 21:14:02 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|