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;
|
|
|
|
in {
|
|
|
|
nixosConfigurations = {
|
2022-01-06 22:16:45 -05:00
|
|
|
"desktop" = lib.makeOverridable lib.nixosSystem {
|
2022-01-06 21:14:02 -05:00
|
|
|
inherit system;
|
|
|
|
modules = [
|
|
|
|
{ _module.args = moduleArgs; }
|
2022-01-06 22:16:45 -05:00
|
|
|
./common/config
|
|
|
|
./desktop/config
|
2022-01-06 21:14:02 -05:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2022-01-06 22:16:45 -05:00
|
|
|
home-manager.users.${username} = import ./desktop/home-manager;
|
2022-01-06 21:14:02 -05:00
|
|
|
home-manager.extraSpecialArgs = moduleArgs;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2022-01-06 22:16:45 -05:00
|
|
|
|
|
|
|
"laptop" = lib.makeOverridable lib.nixosSystem {
|
|
|
|
inherit system;
|
|
|
|
modules = [
|
|
|
|
{ _module.args = moduleArgs }
|
|
|
|
./common/config
|
|
|
|
./laptop/config
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.${username} = import ./laptop/home-manager;
|
|
|
|
home-manager.extraSpecialArgs = moduleArgs;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2022-01-06 21:14:02 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|