From 722fb553f439c3afd662d59272884c43fd0a4c02 Mon Sep 17 00:00:00 2001 From: niten Date: Sat, 2 Oct 2021 16:30:55 -0700 Subject: [PATCH] Add default.nix back once it's got a purpose --- default.nix | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 default.nix diff --git a/default.nix b/default.nix deleted file mode 100644 index fdc6f00..0000000 --- a/default.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ doom-emacs, niten-doom-config, ... }: - -{ config, lib, pkgs, ... }: - -with lib; -let - user-configs = { - niten = ./niten.nix; - root = ./niten.nix; - viator = ./niten.nix; - xiaoxuan = ./xiaoxuan.nix; - }; - - hostname = config.instance.hostname; - enable-gui = config.fudo.hosts.${hostname}.enable-gui; - -in { - - config.home-manager = { - useGlobalPkgs = true; - - users = let - generate-config = username: config-file: let - user-cfg = config.fudo.users.${username}; - user-email = user-cfg.email; - home-dir = user-cfg.home-directory; - in import user-configs.${username} - { inherit username user-email home-dir; }; - in mapAttrs generate-config { - niten = ./niten.nix; - # FIXME: Root shouldn't have all this stuff installed! - root = ./niten.nix; - viator = ./niten.nix; - xiaoxuan = ./xiaoxuan.nix; - }; - }; -}