Whovian's NixOS config, smiley face.
Find a file
2024-05-23 05:16:16 -04:00
home Fix nix-index, oops. 2024-05-20 20:05:35 -04:00
system Finally switch to Lix! 2024-05-18 19:32:04 -04:00
.gitignore Adjust .gitignore based on another repo 2024-05-11 17:00:47 -04:00
flake.lock Finally switch to Lix! 2024-05-18 19:32:04 -04:00
flake.nix Removing some comments 2024-05-19 21:13:31 -04:00
README.md Add some more notes for possible future use. 2024-05-23 05:16:16 -04:00

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:

Extra notes for possible future use:

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";
  };
};

Notes:

$ 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