move service to different flake
Some checks failed
Lint / lint (push) Failing after 2m11s
Plex Update / update (push) Successful in 2m15s

This commit is contained in:
Vivian 2023-12-19 14:52:25 +01:00
parent 3557cc4101
commit ee4936465c
7 changed files with 155 additions and 114 deletions

View file

@ -101,6 +101,4 @@
info.enable = lib.mkForce false;
nixos.enable = lib.mkForce false;
};
system.disableInstallerTools = lib.mkDefault true;
}

View file

@ -11,6 +11,17 @@ in {
Whether to enable home manager integration to set default dconf values
'';
};
auto-unlock-keyring = mkOption {
type = types.bool;
default = true;
description = ''
Whether to automatically unlock the keyring upon login.
This is mostly useful if you are logging in using a fingerprint
or FIDO device and the keyring does not automatically get unlocked.
Make sure you have enrolled you password into the keyring unlocker.
'';
};
};
config = mkIf cfg.enable {
@ -24,7 +35,6 @@ in {
layout = "us";
xkbVariant = "altgr-intl";
# Enable the GNOME Desktop Environment.
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
@ -34,6 +44,8 @@ in {
udisks2.enable = true;
};
services.gnome-autounlock-keyring.enable = cfg.auto-unlock-keyring;
# Add Home-manager dconf stuff
home-manager.sharedModules = mkIf cfg.hm [ ./hm.nix ];
environment.gnome.excludePackages =

View file

@ -156,6 +156,7 @@
"tudelft" = {
ip = "192.168.0.132";
mac = "AE:B3:93:4B:04:76";
nix = false;
};
"mastodon" = {
ip = "192.168.0.138";

View file

@ -5,7 +5,7 @@
virtio0 = "local-zfs:vm-9999-disk-0";
cores = 4;
memory = 4096;
bios = "ovmf";
bios = "seabios";
additionalSpace = "20G";
};

View file

@ -1,4 +1,4 @@
{ nixpkgs, home-manager, mailserver, lanzaboote, attic, ... }:
{ nixpkgs, home-manager, mailserver, lanzaboote, attic, gnome-autounlock-keyring, ... }:
let
inherit (builtins) filter attrValues concatMap mapAttrs;
inherit (nixpkgs.lib.attrsets) mapAttrsToList;
@ -18,6 +18,7 @@ let
"vm" = [ ./common/generic-vm.nix ];
"local" = [
lanzaboote.nixosModules.lanzaboote
gnome-autounlock-keyring.nixosModules.default
./common/desktop
];
};