wsl init
This commit is contained in:
parent
c27cfa58dc
commit
20bb0a3349
2 changed files with 163 additions and 0 deletions
30
flake.nix
30
flake.nix
|
|
@ -27,6 +27,7 @@
|
|||
url = "github:kylekrein/neovim";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
|
||||
stylix.url = "github:danth/stylix?ref=release-24.11";
|
||||
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
|
||||
apple-silicon-support.url = "github:tpwrules/nixos-apple-silicon?ref=releasep2-2024-12-25";
|
||||
|
|
@ -102,6 +103,15 @@
|
|||
# rocmSupport = true;
|
||||
};
|
||||
};
|
||||
kylekrein-wsl-pkgs = nixpkgs: import nixpkgs {
|
||||
system = x86;
|
||||
overlays = [
|
||||
#nativePackagesOverlay
|
||||
];
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
andrej-pc-pkgs = nixpkgs: import nixpkgs {
|
||||
system = x86;
|
||||
overlays = [
|
||||
|
|
@ -180,6 +190,26 @@
|
|||
./nixos/configuration.nix
|
||||
];
|
||||
};
|
||||
"kylekrein-wsl" = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
hwconfig = {
|
||||
hostname = "kylekrein-wsl";
|
||||
isLaptop = true;
|
||||
system = x86;
|
||||
useImpermanence = false;
|
||||
};
|
||||
inherit first-nixos-install;
|
||||
inherit inputs;
|
||||
unstable-pkgs = kylekrein-wsl-pkgs nixpkgs-unstable;
|
||||
};
|
||||
|
||||
system = x86;
|
||||
pkgs = kylekrein-wsl-pkgs nixpkgs;
|
||||
modules = [
|
||||
inputs.nixos-wsl.nixosModules.default
|
||||
./nixos/wsl.nix
|
||||
];
|
||||
};
|
||||
"andrej-pc" = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
hwconfig = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue