Whovian NTSN
d9046b8321
- Adds `mySSHKeys` via `inherit` from `system/sshKeys.nix` for easier setting of allowed SSH keys - Especially useful for self-built `x86_64-linux` NixOS ISO. - Swap where user groups are set to `system/users.nix` - Add `myOptions.isWSL` to identify if an environment is used in WSL or not. - Used for setting user groups between WSL and bare-metal. - Requires adding `myOptions` as module to WSL systems? - Need to investiage if this properly works on bare-metal machines - So likely needs tested in VM? - Added `myOptions.isWSL` option to `nixos-wsl` for group setting reasons, see above. - Fleshed out `nixosConfigurations.isoimage-pc` to make keep some tools handy for live environment. - Plus, gave ssh key access to `root` user on ISO. - Need to double check if `nixos` user needs keys too. - Is that user still even generated with current config? Need to test. - Added `unnix_script` to `home-manager` environment's `home.packages`, so I can remove Nix Store paths from text input easily for ease of comparing against other builds. |
||
---|---|---|
home | ||
system | ||
.gitignore | ||
README.md | ||
chimchar-hold_for_flake.nix | ||
flake.lock | ||
flake.nix |
README.md
Whovian's system flake
I needed to put my config into a git
repo, so I made my first system config flake (and added my home-manager
setup too.) and committed it.
If you have suggestions on "fixing" or "cleaning up" my configurations, please add it to the Discussions so I can take a look at it later!
Future reference:
-
[github:eclairevoyant/flake-migration - /nixos.md] "How to switch to flakes from path-based nix"
-
[NixOS-WSL GitHub/Site] "How to configure NixOS-WSL with flakes?"
-
[Home-Manager GitHub/Site] Setting up
home-manager
as a NixOS module.
Notes for possible future use:
/run/udev/rules.d
exists. Might be good to remember.
I really really should look further into these before actually using them.
virtualisation.docker = {
enableOnBoot = true;
autoPrune = {
enable = true;
};
};
wsl = {
# Enable integration with Docker Desktop (needs to be installed)
docker-desktop.enable = false;
};
environment.shells = [pkgs.zsh];
nix = {
settings = {
access-tokens = [
"github.com=${github_token-variable}"
"gitlab.com=OAuth2:${gitlab_token-variable}"
];
accept-flake-config = true;
auto-optimise-store = true;
};
registry = {
nixpkgs = {
flake = inputs.nixpkgs;
};
};
nixPath = [
"nixpkgs=${inputs.nixpkgs.outPath}"
];
gc = {
automatic = true;
options = "--delete-older-than 7d";
};
};
Information Backups:
$ sudo nix-channel --list
nixos https://nixos.org/channels/nixos-23.11
nixos-wsl https://github.com/nix-community/NixOS-WSL/archive/refs/heads/main.tar.gz