From eaa734e09127ef0bef405c28888dad8a2bf43cf2 Mon Sep 17 00:00:00 2001 From: serenity-F Date: Fri, 20 Sep 2024 21:33:25 +1000 Subject: [PATCH] trying to declaritively make directories + tidy up --- core/config.nix | 24 ++++++++++++------------ home/users/default.nix | 16 ++++++++++++++-- 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/core/config.nix b/core/config.nix index 0fb9ee1..1e0a8a2 100644 --- a/core/config.nix +++ b/core/config.nix @@ -10,28 +10,28 @@ { imports = [ inputs.home-manager.nixosModules.home-manager - ## semi-modularised config + ## Semi-modularised config ./packages.nix # system-level packages here ../home/users # user-level packages here ]; - ## crikey ! + ## Crikey ! time.timeZone = "Australia/Brisbane"; i18n.defaultLocale = "en_GB.UTF-8"; - ## gotta have sound, this too is common - #sound.enable = false; + ## Gotta have sound, this too is common + #sound.enable = false; hardware.pulseaudio.enable = false; services.pipewire = { enable = true; - #jack.enable = false; + #jack.enable = false; pulse.enable = true; alsa.enable = true; - #alsa.support32Bit = false; - #lowLatency.enable = true; + #alsa.support32Bit = false; + #lowLatency.enable = true; }; - ## genuinely dunno what these do hey, like isnt sudo + ## Genuinely dunno what these do hey, like isnt sudo ## already restricted to @wheel only? & wut is rtkit security = { rtkit.enable = true; @@ -39,21 +39,21 @@ }; nix.settings = { - ## use all cores during build + ## Use all cores during build cores = 0; auto-optimise-store = true; allowed-users = [ "@wheel" ]; - ## enable flakes uwu + ## Enable flakes uwu experimental-features = [ "nix-command" "flakes" ]; }; - ## apparently prevents getting stuck at shutdown + ## Apparently prevents getting stuck at shutdown systemd.extraConfig = "DefaultTimeoutStopSec=10s"; - ## disable these cuz they cause problems (thx sasha) + ## Disable these cuz they cause problems (thx sasha) ## see: https://github.com/NixOS/nixpkgs/issues/180175 systemd.services = { networkManager-wait-online.enable = lib.mkForce false; diff --git a/home/users/default.nix b/home/users/default.nix index 06e3d14..67b2095 100644 --- a/home/users/default.nix +++ b/home/users/default.nix @@ -30,10 +30,22 @@ }; + systemd.tmpfiles.settings = { + "notes" = { + "/home/serenity/sync/organisation" = { + d = { + group = "users"; + mode = "0777"; + user = "serenity"; + }; + }; + }; + }; + home-manager = { - ## this line passes in specialArgs from flake.nix + ## This line passes in specialArgs from flake.nix extraSpecialArgs = { inherit inputs outputs; }; - ## this line ensures all packages declared follow the + ## This line ensures all packages declared follow the ## same nix-channel we declared in the flake.nix useGlobalPkgs = true; useUserPackages = true;