my over complex system configurations dotfiles.isabelroses.com/
nixos nix flake dotfiles linux
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

nixos/system/modern: init

in this commit i removed the explicit removal of containers since they
are removed by default now if unused. i also added nixos-init

isabel 5a14bee0 44c67b2b

+26 -15
+1
modules/nixos/system/default.nix
··· 10 10 ./logind.nix 11 11 ./logs.nix 12 12 ./misc.nix 13 + ./modern.nix 13 14 ./monitoring.nix 14 15 ./oomd.nix 15 16 ./printing.nix
+25
modules/nixos/system/modern.nix
··· 1 + # to quite an opinionated stance i think all these options help create a more 2 + # modern nixos feel this happens by removing parts of the system i don't really 3 + # like i.e. perl, mutable /etc, activation scripts etc. a lot of these options 4 + # are also directly needed by each other to work. 5 + # 6 + # WARNING: some of these options are experimental meaning they will and can 7 + # break things. so use at your own risk 8 + { 9 + # We enable Systemd in the initrd so we can use it to mount the root 10 + # filesystem this will remove Perl form the activation 11 + boot.initrd.systemd.enable = true; 12 + 13 + # Declarative user management 14 + # either use this or systemd-sysusers :D 15 + services.userborn.enable = true; 16 + 17 + system = { 18 + # nixos-init will going to make our system more robust in principal 19 + # see <https://github.com/NixOS/nixpkgs/blob/9bf13c9c35c9e80fab6fa3161ec0a09c1ec9a3be/pkgs/by-name/ni/nixos-init/README.md> 20 + nixos-init.enable = true; 21 + 22 + # mount /etc as a read-only overlay filesystem 23 + etc.overlay.enable = true; 24 + }; 25 + }
-15
modules/nixos/system/size.nix
··· 3 3 inherit (lib) mkForce; 4 4 in 5 5 { 6 - boot = { 7 - # this can break things, particularly if you use containers 8 - # personally I don't so it should be fine to disable this 9 - enableContainers = false; 10 - 11 - # We enable Systemd in the initrd so we can use it to mount the root 12 - # filesystem this will remove Perl form the activation 13 - initrd.systemd.enable = true; 14 - }; 15 - 16 - # Declarative user management 17 - services.userborn.enable = true; 18 - 19 6 environment = { 20 7 # disable stub-ld, this exists to kill dynamically linked executables, since they cannot work 21 8 # on NixOS, however we know that so we don't need to see the warning ··· 25 12 # this list normally includes things like perl 26 13 defaultPackages = mkForce [ ]; 27 14 }; 28 - 29 - system.etc.overlay.enable = true; 30 15 31 16 programs = { 32 17 # this is on by default. but i don't use nano