From 91fe8cc1b4f1d8b067e01c38ddf09f70158a7e06 Mon Sep 17 00:00:00 2001
From: Leyla Becker <git@jan-leila.com>
Date: Mon, 2 Sep 2024 21:10:22 -0500
Subject: [PATCH] updated defiant config so it builds

---
 enviroments/client/default.nix  |  3 ---
 enviroments/common/default.nix  |  3 +++
 hosts/defiant/configuration.nix | 38 +++++++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+), 3 deletions(-)

diff --git a/enviroments/client/default.nix b/enviroments/client/default.nix
index a08942e..ccc5a55 100644
--- a/enviroments/client/default.nix
+++ b/enviroments/client/default.nix
@@ -7,9 +7,6 @@
   # Enable CUPS to print documents.
   services.printing.enable = true;
 
-  # Enable networking
-  networking.networkmanager.enable = true;
-
   # Enable the X11 windowing system.
   services.xserver.enable = true;
 
diff --git a/enviroments/common/default.nix b/enviroments/common/default.nix
index 6aeeb97..59dda19 100644
--- a/enviroments/common/default.nix
+++ b/enviroments/common/default.nix
@@ -6,6 +6,9 @@
 
   nix.settings.experimental-features = [ "nix-command" "flakes" ];
 
+  # Enable networking
+  networking.networkmanager.enable = true;
+
   # Set your time zone.
   time.timeZone = "America/Chicago";
 
diff --git a/hosts/defiant/configuration.nix b/hosts/defiant/configuration.nix
index c148f94..dbf4347 100644
--- a/hosts/defiant/configuration.nix
+++ b/hosts/defiant/configuration.nix
@@ -3,10 +3,48 @@
 {
   imports =
     [
+      inputs.home-manager.nixosModules.default
       inputs.sops-nix.nixosModules.sops
 
       ./hardware-configuration.nix
       
       ../../enviroments/server
     ];
+
+  sops.defaultSopsFile = ../../secrets/secrets.yaml;
+  sops.defaultSopsFormat = "yaml";
+
+  sops.age.keyFile = "/home/leyla/.config/sops/age/keys.txt";
+
+  users.leyla.isNormalUser = true;
+  users.ester.isNormalUser = false;
+  users.eve.isNormalUser = false;
+
+
+  boot.loader.grub = {
+    enable = true;
+    device = "/dev/sda";
+    useOSProber = true;
+  };
+
+  networking.hostName = "defiant"; # Define your hostname.
+
+  nixpkgs.config.allowUnfree = true;
+
+  # temp enable desktop enviroment for setup
+  # Enable the X11 windowing system.
+  services.xserver.enable = true;
+
+  # Enable the GNOME Desktop Environment.
+  services.xserver.displayManager.gdm.enable = true;
+  services.xserver.desktopManager.gnome.enable = true;
+  services.xserver.desktopManager.xterm.enable = false;
+
+  # This value determines the NixOS release from which the default
+  # settings for stateful data, like file locations and database versions
+  # on your system were taken. It‘s perfectly fine and recommended to leave
+  # this value at the release version of the first install of this system.
+  # Before changing this value read the documentation for this option
+  # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
+  system.stateVersion = "23.05"; # Did you read the comment?
 }
\ No newline at end of file