Nix Flakes configuration for MacOS, NixOS and WSL
1{ inputs, ... }:
2{
3 flake.nixosModules.andhrimnir = { pkgs, ... }: {
4 imports =
5 with inputs.self.nixosModules;
6 with inputs.self.factory;
7 [
8 /etc/nixos/hardware-configuration.nix
9 bootloader
10 nvidia-gpu
11 kde-desktop
12 auto-upgrade
13 neoxa
14 (autoLogin "neoxa")
15 gaming
16 ];
17
18 networking.networkmanager.enable = true;
19 nix.settings.trusted-users = ["neoxa"];
20 programs.firefox.enable = true;
21 environment.systemPackages = with pkgs; [
22 git
23 just
24 ];
25 };
26
27 hosts.andhrimnir = {
28 system = "x86_64-linux";
29 modules = [ inputs.self.nixosModules.andhrimnir ];
30 };
31}