summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-10-29 22:06:41 +0100
committerSilas Schöffel <sils@sils.li>2024-10-29 22:06:41 +0100
commitb113dac20b167f782586190b337b37c703496f3c (patch)
tree24a98d1cfb8bd52a4dfc8ab444c9ee247a6f7b1e
parentadd disko (diff)
downloadnix-config-b113dac20b167f782586190b337b37c703496f3c.tar.gz
nix-config-b113dac20b167f782586190b337b37c703496f3c.zip
add standalone hm config
Diffstat (limited to '')
-rw-r--r--flake/default.nix8
-rw-r--r--hm/silas/default.nix43
-rw-r--r--hm/sils/default.nix (renamed from hm/default.nix)32
3 files changed, 67 insertions, 16 deletions
diff --git a/flake/default.nix b/flake/default.nix
index 443999e..8b8d634 100644
--- a/flake/default.nix
+++ b/flake/default.nix
@@ -50,5 +50,13 @@
   };
   flake = {
     nixosConfigurations = import ./nixosConfigurations inputs;
+    homeConfigurations."silas" = inputs.home-manager.lib.homeManagerConfiguration {
+      pkgs = import inputs.nixpkgs {
+        system = "x86_64-linux";
+        overlays = [inputs.nixvim.overlays.default];
+      };
+      modules = [../hm/silas];
+      extraSpecialArgs = inputs;
+    };
   };
 }
diff --git a/hm/silas/default.nix b/hm/silas/default.nix
new file mode 100644
index 0000000..cf6671b
--- /dev/null
+++ b/hm/silas/default.nix
@@ -0,0 +1,43 @@
+{nixvim, ...}: {
+  imports = [
+    ../../modules/hm
+    ../gpg
+    ../gtk
+    ../hyfetch
+    ../mako
+    ../nixvim
+    ../packages
+    ../rofi
+    ../ssh
+    ../swayidle
+    ../swaylock
+    ../swayosd
+    ../xsession
+    ../waybar
+    ../xdg
+    ../zsh
+    nixvim.homeManagerModules.nixvim
+  ];
+
+  home = {
+    username = "silas";
+    homeDirectory = "/home/silas";
+    stateVersion = "23.05";
+  };
+
+  sils = {
+    bat.enable = true;
+    direnv.enable = true;
+    etesync-dav.enable = true;
+    firefox.enable = true;
+    foot.enable = true;
+    git.enable = true;
+    hyprland.enable = true;
+    jameica.enable = true;
+    kdeconnect.enable = true;
+    mail.enable = true;
+    sway.enable = true;
+    zathura.enable = true;
+  };
+  programs.home-manager.enable = true;
+}
diff --git a/hm/default.nix b/hm/sils/default.nix
index 7d6e482..8f0bb6b 100644
--- a/hm/default.nix
+++ b/hm/sils/default.nix
@@ -1,21 +1,21 @@
 {nixvim, ...}: {
   imports = [
-    ../modules/hm
-    ./gpg
-    ./gtk
-    ./hyfetch
-    ./mako
-    ./nixvim
-    ./packages
-    ./rofi
-    ./ssh
-    ./swayidle
-    ./swaylock
-    ./swayosd
-    ./xsession
-    ./waybar
-    ./xdg
-    ./zsh
+    ../../modules/hm
+    ../gpg
+    ../gtk
+    ../hyfetch
+    ../mako
+    ../nixvim
+    ../packages
+    ../rofi
+    ../ssh
+    ../swayidle
+    ../swaylock
+    ../swayosd
+    ../xsession
+    ../waybar
+    ../xdg
+    ../zsh
     nixvim.homeManagerModules.nixvim
   ];