summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-01-02 05:04:26 +0000
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-01-02 05:04:26 +0000
commit44cf7be2d93ab270b08196d5153a6eda0032a1ee (patch)
treefc8382ac93c76fa91d59b289cc9de8b11e0a5ceb
parentEnable spice and qemu guest additions (diff)
downloadRory-Open-Architecture-44cf7be2d93ab270b08196d5153a6eda0032a1ee.tar.xz
Add home manager
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
-rw-r--r--flake.nix13
-rw-r--r--host/Rory-devenv/configuration.nix9
-rw-r--r--modules/users/Rory.nix10
-rwxr-xr-xupdate.sh3
4 files changed, 30 insertions, 5 deletions
diff --git a/flake.nix b/flake.nix
index 675a737..6def9bb 100644
--- a/flake.nix
+++ b/flake.nix
@@ -14,11 +14,14 @@
     discord-client-proxy = {
       url = "github:Fosscord/discord-client-proxy";
     };
+    home-manager =  {
+      url = "github:nix-community/home-manager/master";
+    };
   };
 
   # Outputs can be anything, but the wiki + some commands define their own
   # specific keys. Wiki page: https://nixos.wiki/wiki/Flakes#Output_schema
-  outputs = { self, nixpkgs, botcore-v4, discord-client-proxy }: {
+  outputs = { self, nixpkgs, home-manager, botcore-v4, discord-client-proxy }: {
     # nixosConfigurations is the key that nixos-rebuild looks for.
     nixosConfigurations = {
       Rory-discordbots = nixpkgs.lib.nixosSystem {
@@ -29,6 +32,7 @@
         ];
         specialArgs = {
           inherit botcore-v4;
+          inherit home-manager;
         };
       };
       Rory-fosscord = nixpkgs.lib.nixosSystem {
@@ -39,6 +43,7 @@
         ];
         specialArgs = {
           inherit discord-client-proxy;
+          inherit home-manager;
         };
       };
       Rory-postgres = nixpkgs.lib.nixosSystem {
@@ -47,6 +52,9 @@
           ./host/Rory-postgres/configuration.nix
           ./hardware-configuration.nix
         ];
+        specialArgs = {
+          inherit home-manager;
+        };
       };
       Rory-devenv = nixpkgs.lib.nixosSystem {
         system = "x86_64-linux";
@@ -54,6 +62,9 @@
           ./host/Rory-devenv/configuration.nix
           ./hardware-configuration.nix
         ];
+        specialArgs = {
+          inherit home-manager;
+        };
       };
     };
   };
diff --git a/host/Rory-devenv/configuration.nix b/host/Rory-devenv/configuration.nix
index 983cc96..8edaf6f 100644
--- a/host/Rory-devenv/configuration.nix
+++ b/host/Rory-devenv/configuration.nix
@@ -14,9 +14,9 @@
     } ];
   };
 
-  # environment.systemPackages = with pkgs; [
-  #   postgresql
-  # ];
+ # environment.systemPackages = with pkgs; [
+ #   postgresql
+ # ];
   systemd.tmpfiles.rules = [  "d /data/pg 0750 postgres postgres" ];
 
   services = {
@@ -85,6 +85,9 @@
     udisks
     gparted
     glxinfo
+    vscode-with-extensions
+    nodejs
+
   ];
   fonts.fonts = with pkgs; [
     (nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
diff --git a/modules/users/Rory.nix b/modules/users/Rory.nix
index 1ee825c..fb04ef8 100644
--- a/modules/users/Rory.nix
+++ b/modules/users/Rory.nix
@@ -1,4 +1,4 @@
-{ config, pkgs, ... }:
+{ config, pkgs, home-manager, ... }:
 
 {
 
@@ -15,5 +15,13 @@
       "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN/kNkY/E5b6rvCQLMaSbpLQ/xoyywIwVVu9uo2j/B6p Rory@RoryNix"
     ];
   };
+
+  home-manager.users.Rory = {
+    programs.git = {
+      enable = true;
+      userName = "TheArcaneBrony";
+      userEmail = "myrainbowdash949@gmail.com";
+    };
+  };
 }
 
diff --git a/update.sh b/update.sh
new file mode 100755
index 0000000..cbec982
--- /dev/null
+++ b/update.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env sh
+nix flake update
+./build.sh / $HOSTNAME
\ No newline at end of file