Commit 2daa1fc22f4d

Vincent Demeester <vincent@sbr.pm>
2021-05-07 14:05:17
flake: make flakes build…
… by disabling some configuration. Next step will be to port current profiles, hosts in flakes. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 59f7dda
Changed files (4)
systems/modules/profiles/default.flake.nix
@@ -7,6 +7,7 @@
     ./base.flake.nix
     ./home.flake.nix
     ./laptop.flake.nix
+    ./redhat.nix
     # ./desktop.flake.nix
     # FIXME: vpn, server, builder, …
   ];
systems/modules/profiles/home.flake.nix
@@ -1,7 +1,7 @@
 { config, lib, pkgs, ... }:
 let
   inherit (lib) mkIf mkEnableOption;
-  cfg = config.modules.home;
+  cfg = config.profiles.home;
 
   secretPath = ../../secrets/machines.nix;
   secretCondition = (builtins.pathExists secretPath);
@@ -9,7 +9,7 @@ let
 in
 {
   options = {
-    modules.home = {
+    profiles.home = {
       enable = mkEnableOption "home configuration";
     };
   };
users/vincent/default.flake.nix
@@ -25,7 +25,7 @@ in
       #++ optionals config.profiles.scanning.enable [ "lp" "scanner" ]
       ++ optionals config.networking.networkmanager.enable [ "networkmanager" ]
       ++ optionals config.virtualisation.docker.enable [ "docker" ]
-      ++ optionals config.virtualisation.buildkitd.enable [ "buildkit" ]
+      #++ optionals config.virtualisation.buildkitd.enable [ "buildkit" ]
       ++ optionals config.virtualisation.libvirtd.enable [ "libvirtd" ];
     shell = mkIf config.programs.zsh.enable pkgs.zsh;
     isNormalUser = true;
users/vincent/home.nix
@@ -3,41 +3,43 @@ let
   inherit (lib) mkIf;
 in
 {
-  profiles = {
+  /*
+    modules = {
     desktop = {
-      i3.enable = true;
-      browsers = {
-        default = "firefox";
-        firefox.enable = true;
-      };
-      term = {
-        default = "alacritty";
-        alacritty.enable = true;
-      };
+    i3.enable = true;
+    browsers = {
+    default = "firefox";
+    firefox.enable = true;
+    };
+    term = {
+    default = "alacritty";
+    alacritty.enable = true;
+    };
     };
     editors = {
-      default = "emacs";
-      emacs.enable = true;
-      vim.enable = true;
-      # vscode.enable = false;
+    default = "emacs";
+    emacs.enable = true;
+    vim.enable = true;
+    # vscode.enable = false;
     };
     dev = {
-      go.enable = true;
-      python.enable = true;
+    go.enable = true;
+    python.enable = true;
     };
     hardware = {
-      ergodox.enable = true;
+    ergodox.enable = true;
     };
     shell = {
-      git.enable = true;
-      gnupg.enable = true;
-      direnv.enable = true;
-      tmux.enable = true;
-      zsh.enable = true;
+    git.enable = true;
+    gnupg.enable = true;
+    direnv.enable = true;
+    tmux.enable = true;
+    zsh.enable = true;
     };
-  };
+    };
+  */
   home.packages = with pkgs; [ htop ];
-  xsession.windowManager.i3 = mkIf nixosConfig.profiles.desktop.enable {
+  xsession.windowManager.i3 = mkIf nixosConfig.modules.desktop.enable {
     package = pkgs.i3-gaps;
     enable = true;
   };