trying to declaritively make directories + tidy up
This commit is contained in:
parent
4360952a28
commit
eaa734e091
2 changed files with 26 additions and 14 deletions
|
|
@ -10,28 +10,28 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
## semi-modularised config
|
## Semi-modularised config
|
||||||
./packages.nix # system-level packages here
|
./packages.nix # system-level packages here
|
||||||
../home/users # user-level packages here
|
../home/users # user-level packages here
|
||||||
];
|
];
|
||||||
|
|
||||||
## crikey !
|
## Crikey !
|
||||||
time.timeZone = "Australia/Brisbane";
|
time.timeZone = "Australia/Brisbane";
|
||||||
i18n.defaultLocale = "en_GB.UTF-8";
|
i18n.defaultLocale = "en_GB.UTF-8";
|
||||||
|
|
||||||
## gotta have sound, this too is common
|
## Gotta have sound, this too is common
|
||||||
#sound.enable = false;
|
#sound.enable = false;
|
||||||
hardware.pulseaudio.enable = false;
|
hardware.pulseaudio.enable = false;
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
#jack.enable = false;
|
#jack.enable = false;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
#alsa.support32Bit = false;
|
#alsa.support32Bit = false;
|
||||||
#lowLatency.enable = true;
|
#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
|
## already restricted to @wheel only? & wut is rtkit
|
||||||
security = {
|
security = {
|
||||||
rtkit.enable = true;
|
rtkit.enable = true;
|
||||||
|
|
@ -39,21 +39,21 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
## use all cores during build
|
## Use all cores during build
|
||||||
cores = 0;
|
cores = 0;
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
allowed-users = [ "@wheel" ];
|
allowed-users = [ "@wheel" ];
|
||||||
## enable flakes uwu
|
## Enable flakes uwu
|
||||||
experimental-features = [
|
experimental-features = [
|
||||||
"nix-command"
|
"nix-command"
|
||||||
"flakes"
|
"flakes"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
## apparently prevents getting stuck at shutdown
|
## Apparently prevents getting stuck at shutdown
|
||||||
systemd.extraConfig = "DefaultTimeoutStopSec=10s";
|
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
|
## see: https://github.com/NixOS/nixpkgs/issues/180175
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
networkManager-wait-online.enable = lib.mkForce false;
|
networkManager-wait-online.enable = lib.mkForce false;
|
||||||
|
|
|
||||||
|
|
@ -30,10 +30,22 @@
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.tmpfiles.settings = {
|
||||||
|
"notes" = {
|
||||||
|
"/home/serenity/sync/organisation" = {
|
||||||
|
d = {
|
||||||
|
group = "users";
|
||||||
|
mode = "0777";
|
||||||
|
user = "serenity";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
## this line passes in specialArgs from flake.nix
|
## This line passes in specialArgs from flake.nix
|
||||||
extraSpecialArgs = { inherit inputs outputs; };
|
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
|
## same nix-channel we declared in the flake.nix
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue