home: setup home-manager

This commit is contained in:
Antoine Martin 2021-04-19 13:42:29 +02:00
parent 44b05768cd
commit 5c86bdd16a
3 changed files with 44 additions and 1 deletions

View file

@ -16,6 +16,27 @@
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs-unstable"
]
},
"locked": {
"lastModified": 1618789951,
"narHash": "sha256-EoQxcVIiaqjUwwTl1YF3zGnXtzEvOUDL3SBZ8ASELvU=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "6aa6556bcab6dc0f6398b4daa8404d788fd7a6a2",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "master",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1618149891,
@ -51,6 +72,7 @@
"root": {
"inputs": {
"emacs-overlay": "emacs-overlay",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable"
}

View file

@ -21,9 +21,17 @@
repo = "emacs-overlay";
ref = "master";
};
home-manager = {
type = "github";
owner = "nix-community";
repo = "home-manager";
ref = "master";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
};
outputs = { self, nixpkgs, nixpkgs-unstable, emacs-overlay }: {
outputs = { self, nixpkgs, nixpkgs-unstable, emacs-overlay, home-manager }: {
nixosConfigurations.poseidon = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
modules =
@ -54,6 +62,13 @@
[
./boreal.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.alarsyo = import ./home;
}
{
nixpkgs.overlays = [
emacs-overlay.overlay

6
home/default.nix Normal file
View file

@ -0,0 +1,6 @@
{ ... }:
{
home.stateVersion = "20.09";
home.username = "alarsyo";
}