summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-12-27 01:19:08 -0600
committerAlejandro Soto <alejandro@34project.org>2022-12-27 01:19:08 -0600
commit61d433c8e7cc17d5b921329fca9baf7c3d528ade (patch)
tree1766c3dd3a9ff0dd06618adfa285d10951ceea2a /home
parent9d4a860360958a01490013b07c59083e9013cff4 (diff)
flake: rework flake inputs, overlays and platforms
Diffstat (limited to '')
-rw-r--r--home/default.nix18
1 files changed, 4 insertions, 14 deletions
diff --git a/home/default.nix b/home/default.nix
index d6e8a81..5d92b6e 100644
--- a/home/default.nix
+++ b/home/default.nix
@@ -1,8 +1,6 @@
-{ self, nixpkgs, nixpkgsUnstable, nur, hm-isolation }:
{ lib, config, pkgs, ... }:
with lib; {
imports = [
- hm-isolation.homeManagerModule
./desktop.nix
./environ.nix
./graphics.nix
@@ -15,17 +13,9 @@ with lib; {
};
config = {
- nixpkgs.overlays = [ nur.overlay self.overlay ];
-
- nix.registry = {
- "nixpkgs".flake = nixpkgs;
- "nixpkgsUnstable".flake = nixpkgsUnstable;
- "nur".flake = nur;
-
- "system".to = {
- type = "path";
- path = "/home/ale/nix";
- };
+ nix.registry."system".to = {
+ type = "path";
+ path = "${config.home.homeDirectory}/nix";
};
home = {
@@ -40,7 +30,7 @@ with lib; {
stateVersion = "21.11";
username = "ale";
- homeDirectory = "/home/ale";
+ homeDirectory = "/home/${config.home.username}";
sessionVariables = {
EDITOR = "nvim";