trying to declaritively make directories + tidy up

This commit is contained in:
serenity-F 2024-09-20 21:33:25 +10:00
parent 4360952a28
commit eaa734e091
No known key found for this signature in database
2 changed files with 26 additions and 14 deletions

View file

@ -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;

View file

@ -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;