refactoring to more granular flakes and modules
This commit is contained in:
parent
db94d598b5
commit
ca1b820c9f
52 changed files with 2501 additions and 9 deletions
56
flakes/common/readme.md
Normal file
56
flakes/common/readme.md
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
required settings?
|
||||
|
||||
```nix
|
||||
# Required system information
|
||||
networking.hostName = "system_name";
|
||||
|
||||
# Where this config lives for this machine
|
||||
programs.nh.flake = "/home/josh/.config/nixos-config/hosts/${config.networking.hostName}";
|
||||
|
||||
# Optionally allow unfree software
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
users.users = {
|
||||
josh = {
|
||||
isNormalUser = true;
|
||||
initialPassword = "password1";
|
||||
extraGroups = [ "wheel" ];
|
||||
};
|
||||
};
|
||||
```
|
||||
|
||||
# TODO add somewhere
|
||||
|
||||
```nix
|
||||
# allow mounting ntfs filesystems
|
||||
boot.supportedFilesystems = [ "ntfs" ];
|
||||
|
||||
# make shutdown faster for waiting
|
||||
systemd.extraConfig = ''
|
||||
DefaultTimeoutStopSec=8s
|
||||
'';
|
||||
|
||||
nix.settings = {
|
||||
substituters = [
|
||||
"https://hyprland.cachix.org"
|
||||
"https://cosmic.cachix.org/"
|
||||
];
|
||||
trusted-substituters = config.nix.settings.substituters;
|
||||
trusted-public-keys = [
|
||||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
||||
"cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="
|
||||
];
|
||||
};
|
||||
|
||||
services.tailscale.extraUpFlags = ++ (lib.optionals cfg.enableExitNode [ "--advertise-exit-node" ]);
|
||||
|
||||
```
|
||||
|
||||
# TODO
|
||||
|
||||
- New reporting for machine stats
|
||||
- programs not ported, yet
|
||||
- rust dev (now using direnv local flakes for that)
|
||||
- incus
|
||||
- virt-manager
|
||||
-
|
||||
Loading…
Add table
Add a link
Reference in a new issue