about summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-12 13:47:59 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-12 13:47:59 -0800
commit8ed3dfc9ebc52a50c3e6d4623204847822944422 (patch)
tree5ecaf4eb3719f6d60e471775cd6de5da7cb78b46 /hosts
parentconfigs: move personal configuration with user (diff)
downloadworld-8ed3dfc9ebc52a50c3e6d4623204847822944422.tar.gz
move configurations and modules around
Sorry, this is a mess, hopefully the last one.
Diffstat (limited to '')
-rw-r--r--hosts/commons/default.nix11
-rw-r--r--hosts/commons/desktop/default.nix (renamed from modules/desktop/default.nix)0
-rw-r--r--hosts/commons/desktop/fonts.nix (renamed from modules/desktop/fonts.nix)0
-rw-r--r--hosts/commons/desktop/sound.nix (renamed from modules/desktop/sound.nix)0
-rw-r--r--hosts/commons/desktop/xserver.nix (renamed from modules/desktop/xserver.nix)11
-rw-r--r--hosts/commons/system/boot.nix8
-rw-r--r--hosts/commons/system/default.nix (renamed from modules/systems/default.nix)5
-rw-r--r--hosts/commons/system/motd.nix (renamed from modules/systems/motd.nix)0
-rw-r--r--hosts/commons/system/network.nix (renamed from hosts/commons/network.nix)0
-rw-r--r--hosts/commons/system/nix.nix (renamed from modules/systems/nix.nix)0
-rw-r--r--hosts/commons/system/software.nix (renamed from modules/systems/software.nix)0
-rw-r--r--hosts/commons/system/ssh.nix (renamed from modules/systems/ssh.nix)0
-rw-r--r--hosts/commons/system/users.nix (renamed from modules/systems/users.nix)0
13 files changed, 11 insertions, 24 deletions
diff --git a/hosts/commons/default.nix b/hosts/commons/default.nix
index 4f35a15..0361d27 100644
--- a/hosts/commons/default.nix
+++ b/hosts/commons/default.nix
@@ -2,15 +2,6 @@
 
 {
   imports = [
-    ./network.nix
+    ./system
   ];
-
-  environment = {
-    # Activate home-manager environment, if not already enabled
-    loginShellInit = ''
-      [ -d "$HOME/.nix-profile" ] || /nix/var/nix/profiles/per-user/$USER/home-manager/activate &> /dev/null
-    '';
-    homeBinInPath = true;
-    localBinInPath = true;
-  };
 }
diff --git a/modules/desktop/default.nix b/hosts/commons/desktop/default.nix
index f150066..f150066 100644
--- a/modules/desktop/default.nix
+++ b/hosts/commons/desktop/default.nix
diff --git a/modules/desktop/fonts.nix b/hosts/commons/desktop/fonts.nix
index a840582..a840582 100644
--- a/modules/desktop/fonts.nix
+++ b/hosts/commons/desktop/fonts.nix
diff --git a/modules/desktop/sound.nix b/hosts/commons/desktop/sound.nix
index 95c7c75..95c7c75 100644
--- a/modules/desktop/sound.nix
+++ b/hosts/commons/desktop/sound.nix
diff --git a/modules/desktop/xserver.nix b/hosts/commons/desktop/xserver.nix
index 1b96d03..7537863 100644
--- a/modules/desktop/xserver.nix
+++ b/hosts/commons/desktop/xserver.nix
@@ -20,15 +20,4 @@
       i3.enable = true;
     };
   };
-
-  programs.gnupg.agent = {
-    enable = true;
-    enableSSHSupport = true;
-  };
-
-  environment.sessionVariables.TERMINAL = [ "alacritty" ];
-  environment.sessionVariables.TERM = [ "xterm-256color" ];
-
-  services.gnome.gnome-keyring.enable = true;
-  services.gvfs.enable = true;
 }
diff --git a/hosts/commons/system/boot.nix b/hosts/commons/system/boot.nix
new file mode 100644
index 0000000..974b072
--- /dev/null
+++ b/hosts/commons/system/boot.nix
@@ -0,0 +1,8 @@
+{ pkgs, config, lib, ... }:
+
+{
+  boot = {
+    kernelPackages = pkgs.linuxPackages_latest;
+    tmpOnTmpfs = true;
+  };
+}
diff --git a/modules/systems/default.nix b/hosts/commons/system/default.nix
index 27fb53b..64cb51b 100644
--- a/modules/systems/default.nix
+++ b/hosts/commons/system/default.nix
@@ -2,16 +2,15 @@
 
 {
   imports = [
+    ./boot.nix
     ./motd.nix
+    ./network.nix
     ./nix.nix
     ./software.nix
     ./ssh.nix
     ./users.nix
   ];
 
-  boot.kernelPackages = pkgs.linuxPackages_latest;
-  boot.tmpOnTmpfs = true;
-
   # Select internationalisation properties.
   i18n.defaultLocale = "en_US.UTF-8";
   console = {
diff --git a/modules/systems/motd.nix b/hosts/commons/system/motd.nix
index 898d03f..898d03f 100644
--- a/modules/systems/motd.nix
+++ b/hosts/commons/system/motd.nix
diff --git a/hosts/commons/network.nix b/hosts/commons/system/network.nix
index df5aa27..df5aa27 100644
--- a/hosts/commons/network.nix
+++ b/hosts/commons/system/network.nix
diff --git a/modules/systems/nix.nix b/hosts/commons/system/nix.nix
index 48379a4..48379a4 100644
--- a/modules/systems/nix.nix
+++ b/hosts/commons/system/nix.nix
diff --git a/modules/systems/software.nix b/hosts/commons/system/software.nix
index fa919ae..fa919ae 100644
--- a/modules/systems/software.nix
+++ b/hosts/commons/system/software.nix
diff --git a/modules/systems/ssh.nix b/hosts/commons/system/ssh.nix
index 0ecca80..0ecca80 100644
--- a/modules/systems/ssh.nix
+++ b/hosts/commons/system/ssh.nix
diff --git a/modules/systems/users.nix b/hosts/commons/system/users.nix
index 2b769c4..2b769c4 100644
--- a/modules/systems/users.nix
+++ b/hosts/commons/system/users.nix