aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/default-darwin.nix1
-rw-r--r--modules/default.nix3
-rw-r--r--modules/home-manager.nix12
-rw-r--r--modules/host-config.nix15
-rw-r--r--modules/user.nix24
5 files changed, 0 insertions, 55 deletions
diff --git a/modules/default-darwin.nix b/modules/default-darwin.nix
index bf8c660..4b4daaa 100644
--- a/modules/default-darwin.nix
+++ b/modules/default-darwin.nix
@@ -1,7 +1,6 @@
{ ... }:
{
imports = [
- ./host-config.nix
./ssh.nix
];
}
diff --git a/modules/default.nix b/modules/default.nix
index f936646..257c72e 100644
--- a/modules/default.nix
+++ b/modules/default.nix
@@ -1,10 +1,7 @@
{ ... }:
{
imports = [
- ./home-manager.nix
- ./host-config.nix
./remote-unlock.nix
./ssh.nix
- ./user.nix
];
}
diff --git a/modules/home-manager.nix b/modules/home-manager.nix
deleted file mode 100644
index 7a9ae43..0000000
--- a/modules/home-manager.nix
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- adminUser,
- ...
-}:
-{
- home-manager = {
- users.${adminUser.name} = {
- home.username = "${adminUser.name}";
- inherit (adminUser) userinfo;
- };
- };
-}
diff --git a/modules/host-config.nix b/modules/host-config.nix
deleted file mode 100644
index b10d85f..0000000
--- a/modules/host-config.nix
+++ /dev/null
@@ -1,15 +0,0 @@
-{ lib, ... }:
-let
- inherit (lib) mkOption;
- inherit (lib.types)
- attrs
- ;
-in
-{
- options = {
- adminUser = mkOption {
- type = attrs;
- default = { };
- };
- };
-}
diff --git a/modules/user.nix b/modules/user.nix
deleted file mode 100644
index 8a9dafb..0000000
--- a/modules/user.nix
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- adminUser,
- pkgs,
- ...
-}:
-{
- nix.settings.trusted-users = [ adminUser.name ];
- users = {
- users.${adminUser.name} = {
- inherit (adminUser) uid;
- shell = pkgs.fish;
- isNormalUser = true;
- hashedPassword = "$6$Llw8m62nKMLLN9mm$3.a4CKUFlqwkG8vjBryLlBNwTwgH63vpg2nhYwRoQzG76Q91vTXnlYDujS4G5yGrWoatkKZx5epCx4/NAvRh2/";
- openssh.authorizedKeys.keys = [
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBkozy+X96u5ciX766bJ/AyQ3xm1tXZTIr5+4PVFZFi"
- ];
- extraGroups = [
- "wheel"
- ];
- };
- };
-
- programs.fish.enable = true;
-}