diff options
| author | seth <[email protected]> | 2022-12-01 22:17:21 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2022-12-01 22:17:39 -0500 |
| commit | aca5eff381f76bc29f25191efc281ccf50cf0e3e (patch) | |
| tree | e265f9ad2048225a56beba60197fb2b63f848af5 /flake.nix | |
| parent | ae4332f4e2f6c95289f43e0c233ee75066669669 (diff) | |
initial commit of files
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..3838adc --- /dev/null +++ b/flake.nix @@ -0,0 +1,37 @@ +{ + inputs = { + nixpkgs.url = "nixpkgs/nixos-unstable"; + nixos-wsl.url = "git+https://github.com/nix-community/NixOS-WSL?ref=main"; + home-manager.url = "github:nix-community/home-manager"; + home-manager.inputs.nixpkgs.follows = "nixpkgs"; + }; + + outputs = { self, nixpkgs, nixos-wsl, home-manager, ... }: { + nixosConfigurations.glados = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ./configuration.nix + ./hosts/glados + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.seth = import ./seth; + } + + nixos-wsl.nixosModules.wsl + ({ config, lib, pkgs, ... }: { + environment.noXlibs = lib.mkForce false; + wsl = { + enable = true; + defaultUser = "seth"; + nativeSystemd = true; + wslConf.network.hostname = "glados"; + startMenuLaunchers = false; + interop.includePath = false; + }; + }) + ]; + }; + }; +} |
