From f42ee3ca4c7047301161a81e11ffad29363d85ab Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Mon, 22 Aug 2022 12:28:46 -0300 Subject: [PATCH] maia: adjustments --- hosts/common/optional/gnome.nix | 2 -- hosts/common/optional/pantheon.nix | 27 +++++++++++++++++++++++++++ hosts/common/users/layla.nix | 6 +++++- hosts/maia/default.nix | 2 ++ 4 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 hosts/common/optional/pantheon.nix diff --git a/hosts/common/optional/gnome.nix b/hosts/common/optional/gnome.nix index a3608e14..c85d51e2 100644 --- a/hosts/common/optional/gnome.nix +++ b/hosts/common/optional/gnome.nix @@ -15,6 +15,4 @@ # Fix broken stuff services.avahi.enable = false; networking.networkmanager.enable = false; - - i18n.defaultLocale = "pt_BR.UTF-8"; } diff --git a/hosts/common/optional/pantheon.nix b/hosts/common/optional/pantheon.nix new file mode 100644 index 00000000..3988aabb --- /dev/null +++ b/hosts/common/optional/pantheon.nix @@ -0,0 +1,27 @@ +{ + services = { + xserver = { + enable = true; + desktopManager.pantheon = { + enable = true; + }; + displayManager.lightdm = { + enable = true; + greeters.pantheon.enable = true; + }; + }; + pantheon = { + apps.enable = true; + }; + geoclue2.enable = true; + }; + programs = { + pantheon-tweaks.enable = true; + }; + # Fix shutdown taking a long time + # https://gist.github.com/worldofpeace/27fcdcb111ddf58ba1227bf63501a5fe + systemd.extraConfig = '' + DefaultTimeoutStopSec=10s + DefaultTimeoutStartSec=10s + ''; +} diff --git a/hosts/common/users/layla.nix b/hosts/common/users/layla.nix index 3125dbb4..7adde3f9 100644 --- a/hosts/common/users/layla.nix +++ b/hosts/common/users/layla.nix @@ -1,4 +1,4 @@ -{ pkgs, config, ... }: +{ pkgs, lib, config, persistence, ... }: { users.mutableUsers = false; users.users.layla = { @@ -17,4 +17,8 @@ neededForUsers = true; }; + # Persist entire home + environment.persistence = lib.mkIf persistence { + "/persist".directories = [ "/home/layla" ]; + }; } diff --git a/hosts/maia/default.nix b/hosts/maia/default.nix index 29153d82..460edd0c 100644 --- a/hosts/maia/default.nix +++ b/hosts/maia/default.nix @@ -11,6 +11,7 @@ ../common/users/layla.nix ./services + ../common/optional/pantheon.nix ../common/optional/quietboot.nix ../common/optional/tailscale.nix ]; @@ -40,6 +41,7 @@ }; }; + i18n.defaultLocale = "pt_BR.UTF-8"; hardware.nvidia.prime.offload.enable = false; system.stateVersion = "22.05"; # TODO: Add graphical stuff