port to flakes
This commit is contained in:
parent
deaa4fb75c
commit
2d9150098e
76 changed files with 721 additions and 315 deletions
42
home/configurations.nix
Normal file
42
home/configurations.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ self
|
||||
, nixpkgs
|
||||
, home-manager
|
||||
}:
|
||||
let
|
||||
hmConfiguration =
|
||||
{ homeDirectory ? "/home/dadada"
|
||||
, extraModules ? [ ]
|
||||
, overlays ? [ ]
|
||||
, system ? "x86_64-linux"
|
||||
, username ? "dadada"
|
||||
, stateVersion
|
||||
}:
|
||||
(home-manager.lib.homeManagerConfiguration {
|
||||
configuration = { ... }: {
|
||||
imports = (nixpkgs.lib.attrValues self.hmModules) ++ extraModules;
|
||||
nixpkgs = {
|
||||
config = import ./nixpkgs-config.nix {
|
||||
pkgs = nixpkgs;
|
||||
};
|
||||
overlays = overlays;
|
||||
};
|
||||
};
|
||||
inherit system homeDirectory username stateVersion;
|
||||
});
|
||||
in
|
||||
{
|
||||
home = hmConfiguration {
|
||||
extraModules = [ ./home ];
|
||||
overlays = with self.overlays; [
|
||||
scripts
|
||||
];
|
||||
stateVersion = "20.09";
|
||||
};
|
||||
|
||||
work = hmConfiguration rec {
|
||||
extraModules = [ ./work ];
|
||||
homeDirectory = "/home/${username}";
|
||||
username = "tim.schubert";
|
||||
stateVersion = "20.09";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue