Commit 3ef35fe6e96c

Vincent Demeester <vincent@sbr.pm>
2018-04-20 15:05:24
Setup a simple home-manager in nixos.
This make it possible to use home-manager as a nixos module. Next step is to update this configuration to be easily used from outside nixos (in darwin or a linux system with nixpkgs only). Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent bb31bf9
Changed files (3)
home/configuration.nix
@@ -0,0 +1,11 @@
+{ pkgs, prefix, ... }:
+
+{
+  home.packages = with pkgs; [
+    acpi
+    autorandr
+    jq
+    htop
+    pass
+  ];
+}
machine/wakasu.nix
@@ -10,9 +10,9 @@
 			../profiles/dockerization.nix
 			../profiles/dev.go.nix
 			../profiles/dev.python.nix
-			../profiles/mopidy.nix
 			../location/docker.nix
 			../location/home.nix
+      ../pkgs/home-manager/nixos
 			../hardware/thinkpad-t460s.nix
 		];
 
@@ -22,9 +22,12 @@
 		{ domain = "@audio"; item = "nofile";  type = "-"; value = "99999"; }
 	];
 
+  home-manager.users.vincent = import ../home/configuration.nix {
+    inherit pkgs; prefix = config.users.users.vincent.home;
+  };
+  
 	boot.loader.systemd-boot.enable = true;
 	boot.loader.efi.canTouchEfiVariables = true;
-
 	boot.initrd.luks.devices = [
 		{
 			name = "root";
profiles/laptop.nix
@@ -9,8 +9,6 @@
 	];
 
 	environment.systemPackages = with pkgs; [
-		acpi
-		autorandr
 		lm_sensors
 		powertop
 	];