diff --git a/modules/backup.nix b/modules/backup.nix index 2e0c8ef..1b39daf 100644 --- a/modules/backup.nix +++ b/modules/backup.nix @@ -1,5 +1,14 @@ { config, pkgs, lib, inputs, ... }: -let +with lib; +let + cfg = config.custom.misc.backup; +in +{ + options.custom.backup = { + enable = mkEnableOption "Enables backup"; + }; + + config = let kavita = "/mnt/1tbssd/kavita"; gitolite = "/var/lib/gitolite"; syncthing = [ "/synced/default/" "/synced/work_drive/" ]; @@ -27,8 +36,7 @@ let du -sch ${builtins.concatStringsSep " " (map (x: "--exclude=" + x) excludePathsRemote)} ${builtins.concatStringsSep " " backupPathsFull} ''; }; -in -{ +in mkIf cfg.enable { environment.systemPackages = with pkgs; [ checkStorageSpace ]; age.secrets.restic-pw = { file = ../secrets/restic-pw.age; @@ -98,3 +106,4 @@ in }; }; } +} diff --git a/systems/pc/configuration.nix b/systems/pc/configuration.nix index f1334f5..1c664fd 100644 --- a/systems/pc/configuration.nix +++ b/systems/pc/configuration.nix @@ -13,23 +13,23 @@ mainUser.layout = "de"; mainUser.variant = "us"; age.identityPaths = [ /home/kopatz/.ssh/id_rsa ]; - services.xserver.displayManager.session = [ - { - manage = "desktop"; - name = "hyprland"; - start = '' - ${lib.getExe pkgs.hyprland} & - waitPID=$! - ''; - } - { - manage = "desktop"; - name = "plasma5"; - start = '' - env ${pkgs.plasma-workspace}/bin/startplasma-x11 - ''; - } - ]; + #services.xserver.displayManager.session = [ + # { + # manage = "desktop"; + # name = "hyprland"; + # start = '' + # ${lib.getExe pkgs.hyprland} & + # waitPID=$! + # ''; + # } + # { + # manage = "desktop"; + # name = "plasma5"; + # start = '' + # env ${pkgs.plasma-workspace}/bin/startplasma-x11 + # ''; + # } + #]; # Bootloader. boot.loader.systemd-boot.enable = true; diff --git a/users/kopatz/default.nix b/users/kopatz/default.nix index 0e9f8cf..ed8a99c 100644 --- a/users/kopatz/default.nix +++ b/users/kopatz/default.nix @@ -19,6 +19,7 @@ programs.zsh.enable = true; users.users.${config.mainUser.name} = { isNormalUser = true; + initialPassword = "1"; description = config.mainUser.name; shell = pkgs.zsh; extraGroups = [ "networkmanager" "wheel" "docker" ];