about summary refs log tree commit diff
path: root/hosts/home.nix
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-09 11:41:17 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-10 20:22:31 +0200
commitef1123869a87984c60e72c17f6b89b8803730cbc (patch)
tree0e98d54eab906200d712a30e7c1ef906c066adb3 /hosts/home.nix
parentISO: Set user as nixos (diff)
downloadnixos-config-ef1123869a87984c60e72c17f6b89b8803730cbc.tar.gz
nixos-config-ef1123869a87984c60e72c17f6b89b8803730cbc.tar.bz2
nixos-config-ef1123869a87984c60e72c17f6b89b8803730cbc.zip
Misc: Use dotfiles as flake input
Diffstat (limited to 'hosts/home.nix')
-rw-r--r--hosts/home.nix23
1 files changed, 10 insertions, 13 deletions
diff --git a/hosts/home.nix b/hosts/home.nix
index b2181d6..afe9cc6 100644
--- a/hosts/home.nix
+++ b/hosts/home.nix
@@ -1,7 +1,4 @@
 { config, lib, pkgs, inputs, user, hostname, secrets, location, ... }:
-let
-  dotfiles = ../dotfiles;
-in
 {
   imports = [ ];
 
@@ -45,12 +42,12 @@ in
   xsession.windowManager.xmonad = {
     enable = true;
     enableContribAndExtras = true;
-    config = dotfiles + "/xmonad.hs";
+    config = "${inputs.dotfiles}/xmonad.hs";
   };
 
   programs.xmobar = {
     enable = true;
-    extraConfig = builtins.readFile (dotfiles + "/xmobar.hs");
+    extraConfig = builtins.readFile "${inputs.dotfiles}/xmobar.hs";
   };
 
   home.sessionVariables = {
@@ -127,7 +124,7 @@ in
 
         doom-themes
       ];
-      extraConfig = builtins.readFile (dotfiles + "/.emacs");
+      extraConfig = builtins.readFile "${inputs.dotfiles}/.emacs";
     };
 
     firefox = {
@@ -154,8 +151,8 @@ in
 
     bash = {
       enable = true;
-      bashrcExtra = builtins.readFile (dotfiles + "/.bashrc");
-      profileExtra = builtins.readFile (dotfiles + "/.bash_profile");
+      bashrcExtra = builtins.readFile "${inputs.dotfiles}/.bashrc";
+      profileExtra = builtins.readFile "${inputs.dotfiles}/.bash_profile";
     };
 
     zsh = {
@@ -258,15 +255,15 @@ in
   };
 
   xdg = {
-    configFile."zathura/zathurarc".source = dotfiles + "/zathurarc";
-    configFile."dunst/dunstrc".source = dotfiles + "/dunstrc";
+    configFile."zathura/zathurarc".source = "${inputs.dotfiles}/zathurarc";
+    configFile."dunst/dunstrc".source = "${inputs.dotfiles}/dunstrc";
   };
 
   home.file = {
-    ".xinitrc".source = dotfiles + "/.xinitrc";
-    ".Xresources".source = dotfiles + "/.Xresources/";
+    ".xinitrc".source = "${inputs.dotfiles}/.xinitrc";
+    ".Xresources".source = "${inputs.dotfiles}/.Xresources";
 
-    ".scripts/".source = dotfiles + "/scripts/";
+    ".scripts/".source = "${inputs.dotfiles}/scripts/";
   };
 
   home.file = {