home: use home-manager

This commit is contained in:
Alexander Kobjolke 2021-07-18 23:31:55 +02:00
parent 111c6b1e34
commit 83ae5ba8d2
3 changed files with 112 additions and 1 deletions

View file

@ -3,6 +3,11 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.05-small";
utils.url = "github:gytis-ivaskevicius/flake-utils-plus/staging";
hm = {
url = "github:nix-community/home-manager/release-21.05";
inputs.nixpkgs.follows = "nixpkgs";
};
# simple mailserver
snm = {
url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
@ -13,7 +18,7 @@
# age for nix to store encrypted passwords conveniently
agenix.url = "github:ryantm/agenix";
};
outputs = { self, nixpkgs, agenix, ... }@inputs: {
outputs = { self, hm, nixpkgs, agenix, ... }@inputs: {
inherit self inputs;
nixosConfigurations."thrall" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
@ -22,6 +27,12 @@
./modules/security.nix
./hosts/thrall
agenix.nixosModules.age
hm.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.alex = import ./home/cli.nix;
}
];
};
};