massive clean-up/restructure
This commit is contained in:
parent
54da646c04
commit
b13498571e
48 changed files with 166 additions and 236 deletions
|
|
@ -1,75 +0,0 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
|
||||
## semi-modularised config
|
||||
./packages.nix
|
||||
#./fonts.nix
|
||||
./misc.nix
|
||||
../home/users
|
||||
|
||||
];
|
||||
|
||||
## locale is common across machines
|
||||
## crikey !
|
||||
time.timeZone = "Australia/Brisbane";
|
||||
i18n.defaultLocale = "en_GB.UTF-8";
|
||||
|
||||
## gotta have sound, this too is common
|
||||
sound.enable = false;
|
||||
hardware.pulseaudio.enable = false;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
#jack.enable = false;
|
||||
pulse.enable = true;
|
||||
alsa.enable = true;
|
||||
#alsa.support32Bit = false;
|
||||
#lowLatency.enable = true;
|
||||
};
|
||||
|
||||
## genuinely dunno what these do hey, like isnt sudo
|
||||
## already restricted to @wheel only? & wut is rtkit
|
||||
security = {
|
||||
rtkit.enable = true;
|
||||
sudo.execWheelOnly = true;
|
||||
};
|
||||
|
||||
## settings for nix
|
||||
nix.settings = {
|
||||
## use all cores during build
|
||||
cores = 0;
|
||||
auto-optimise-store = true;
|
||||
allowed-users = [ "@wheel" ];
|
||||
## enable flakes uwu
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
};
|
||||
|
||||
## 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;
|
||||
systemd-networkd-wait-online.enable = lib.mkForce false;
|
||||
};
|
||||
|
||||
## autoupgrades ? disabled for now, need to read into
|
||||
# system.autoUpgrade = {
|
||||
# enable = true;
|
||||
# channel = "";
|
||||
# };
|
||||
|
||||
## https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue