chore(users): restructure

This commit is contained in:
Malte Tammena 2024-03-10 17:11:16 +01:00
parent a9ad73bf6f
commit d008138896
31 changed files with 28 additions and 28 deletions

View file

@ -19,7 +19,7 @@
# Source: https://nixos.wiki/wiki/ZFS # Source: https://nixos.wiki/wiki/ZFS
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
users.users.nixos.openssh.authorizedKeys.keyFiles = [../../users/malte/yubikey.pub]; users.users.nixos.openssh.authorizedKeys.keyFiles = [../../secrets/pub/yubikey.pub];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# For special computers # For special computers

View file

@ -97,7 +97,7 @@ in {
useDefaultShell = true; useDefaultShell = true;
group = config.users.groups.hydra-minion.name; group = config.users.groups.hydra-minion.name;
openssh.authorizedKeys.keyFiles = [ openssh.authorizedKeys.keyFiles = [
../users/malte/yubikey.pub ../secrets/pub/yubikey.pub
../secrets/hydra-overseer.pub ../secrets/hydra-overseer.pub
]; ];
}; };
@ -118,7 +118,7 @@ in {
# Tailscale exit node seem to have a problem with strict checking # Tailscale exit node seem to have a problem with strict checking
networking.firewall.checkReversePath = "loose"; networking.firewall.checkReversePath = "loose";
# Add yubikey for root authentication # Add yubikey for root authentication
users.users.root.openssh.authorizedKeys.keyFiles = [../users/malte/yubikey.pub]; users.users.root.openssh.authorizedKeys.keyFiles = [../secrets/pub/yubikey.pub];
# Enable mosh for some SSH superpower # Enable mosh for some SSH superpower
programs.mosh.enable = pkgs.lib.mkDefault true; programs.mosh.enable = pkgs.lib.mkDefault true;

View file

@ -35,7 +35,7 @@ in {
# Yes, use the best, please # Yes, use the best, please
shell = pkgs.fish; shell = pkgs.fish;
# Allow my yubikey everywhere # Allow my yubikey everywhere
openssh.authorizedKeys.keyFiles = [../users/malte/yubikey.pub]; openssh.authorizedKeys.keyFiles = [../secrets/pub/yubikey.pub];
}; };
# include the sd card, if any is inserted # include the sd card, if any is inserted
@ -49,7 +49,7 @@ in {
}; };
}; };
home-manager.users.deck.imports = [../users/deck/home.nix inputs.nix-colors.homeManagerModule inputs.hyprland.homeManagerModules.default]; home-manager.users.deck.imports = [../users/deck/default.nix inputs.nix-colors.homeManagerModule inputs.hyprland.homeManagerModules.default];
programs.fish.enable = true; programs.fish.enable = true;
services.flatpak.enable = true; services.flatpak.enable = true;

View file

@ -34,11 +34,11 @@ in {
# Yes, use the best, please # Yes, use the best, please
shell = pkgs.fish; shell = pkgs.fish;
# Allow my yubikey everywhere # Allow my yubikey everywhere
openssh.authorizedKeys.keyFiles = [../users/malte/yubikey.pub]; openssh.authorizedKeys.keyFiles = [../secrets/pub/yubikey.pub];
}; };
users.groups.adbusers = {}; users.groups.adbusers = {};
home-manager.users.malte.imports = [../users/malte/home.nix inputs.nix-colors.homeManagerModule inputs.hyprland.homeManagerModules.default]; home-manager.users.malte.imports = [../users/malte/default.nix inputs.nix-colors.homeManagerModule inputs.hyprland.homeManagerModules.default];
programs.fish.enable = true; programs.fish.enable = true;
services.udev.packages = [ services.udev.packages = [

View file

@ -27,7 +27,7 @@ in {
}; };
programs.fish.enable = true; programs.fish.enable = true;
home-manager.users.marie.imports = [../users/marie/home.nix]; home-manager.users.marie.imports = [../users/marie/default.nix];
sops.secrets = let sops.secrets = let
sopsFile = ../secrets/users/marie/secrets.yaml; sopsFile = ../secrets/users/marie/secrets.yaml;

View file

@ -103,19 +103,19 @@
}; };
in { in {
imports = [ imports = [
./git.nix ./modules/git.nix
./shell.nix ./modules/shell.nix
./kitty.nix ./modules/kitty.nix
./gpg.nix ./modules/gpg.nix
./mail.nix ./modules/mail.nix
./pass.nix ./modules/pass.nix
./zathura.nix ./modules/zathura.nix
./scarlett-solo.nix ./modules/scarlett-solo.nix
./helix.nix ./modules/helix.nix
./mpv.nix ./modules/mpv.nix
./broot.nix ./modules/broot.nix
./hypr.nix ./modules/hypr.nix
./notes.nix ./modules/notes.nix
../modules/restic-backup.nix ../modules/restic-backup.nix
../modules/colors.nix ../modules/colors.nix
../modules/profiles-cleanup.nix ../modules/profiles-cleanup.nix

View file

@ -7,8 +7,8 @@
}: let }: let
cfg = config.settings.hyprland; cfg = config.settings.hyprland;
bemenu = pkgs.callPackage ../../pkgs/bemenu-configured.nix {color = config.colorsDark.colors;}; bemenu = pkgs.callPackage ../../../pkgs/bemenu-configured.nix {color = config.colorsDark.colors;};
doNotDisturb = pkgs.callPackage ../../pkgs/do-not-disturb.nix {}; doNotDisturb = pkgs.callPackage ../../../pkgs/do-not-disturb.nix {};
hyprpaperConfig = '' hyprpaperConfig = ''
preload = ~/Downloads/wallpaper.jpg preload = ~/Downloads/wallpaper.jpg

View file

@ -24,7 +24,7 @@
notmuchNew = pkgs.writeShellApplication { notmuchNew = pkgs.writeShellApplication {
name = "notmuch-new"; name = "notmuch-new";
runtimeInputs = with pkgs; [notmuch]; runtimeInputs = with pkgs; [notmuch];
text = builtins.readFile ../../scripts/notmuch-new.sh; text = builtins.readFile ../../../scripts/notmuch-new.sh;
}; };
# Quote the given string # Quote the given string

View file

@ -4,7 +4,7 @@
... ...
}: let }: let
colDark = name: "#${config.colorsDark.colors.${name}}"; colDark = name: "#${config.colorsDark.colors.${name}}";
doNotDisturb = pkgs.callPackage ../../pkgs/do-not-disturb.nix {}; doNotDisturb = pkgs.callPackage ../../../pkgs/do-not-disturb.nix {};
in { in {
services.mako = { services.mako = {
enable = true; enable = true;

View file

@ -9,7 +9,7 @@
pkgs.ncurses pkgs.ncurses
pkgs.git pkgs.git
]; ];
text = builtins.readFile ../../scripts/note.sh; text = builtins.readFile ../../../scripts/note.sh;
}; };
in { in {
home.packages = [note]; home.packages = [note];

View file

@ -3,7 +3,7 @@
config, config,
... ...
}: let }: let
bemenuConfigured = pkgs.callPackage ../../pkgs/bemenu-configured.nix { bemenuConfigured = pkgs.callPackage ../../../pkgs/bemenu-configured.nix {
color = config.colorsDark.colors; color = config.colorsDark.colors;
cmd = "bemenu"; cmd = "bemenu";
}; };

View file

@ -11,7 +11,7 @@
doNotDisturbJson = pkgs.writeShellApplication { doNotDisturbJson = pkgs.writeShellApplication {
name = "do-not-disturb-json"; name = "do-not-disturb-json";
runtimeInputs = [ runtimeInputs = [
(pkgs.callPackage ../../pkgs/do-not-disturb.nix {}) (pkgs.callPackage ../../../pkgs/do-not-disturb.nix {})
pkgs.coreutils pkgs.coreutils
pkgs.jq pkgs.jq
]; ];