Initial commit
This commit is contained in:
commit
c3fe1114b3
20 changed files with 885 additions and 0 deletions
38
flake.nix
Normal file
38
flake.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
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 = {
|
||||
"kiana-pc" = lib.makeOverridable lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
{ _module.args = moduleArgs; }
|
||||
./config
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.kiana = import ./home-manager;
|
||||
home-manager.extraSpecialArgs = moduleArgs;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue