Skip to content

Commit

Permalink
hosts/wsl: init
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Aug 22, 2024
1 parent a0bebad commit 8a1e428
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 13 deletions.
27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,14 @@
url = "github:NotAShelf/tailray";
inputs.nixpkgs.follows = "nixpkgs";
};

nixos-wsl = {
url = "github:nix-community/NixOS-WSL";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
flake-compat.follows = "flake-compat";
};
};
};
}
4 changes: 3 additions & 1 deletion home/profiles/server/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
programs.helix.enable = true;
imports = [
../../editors/helix
];
}
26 changes: 17 additions & 9 deletions hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
self,
inputs,
homeImports,
lib,
...
}: {
flake.nixosConfigurations = let
Expand Down Expand Up @@ -70,14 +71,21 @@
# ];
# };

# kiiro = nixosSystem {
# inherit specialArgs;
# modules =
# desktop
# ++ [
# ./kiiro
# {home-manager.users.mihai.imports = homeImports.server;}
# ];
# };
nixos = nixosSystem {
inherit specialArgs;
modules = [
./wsl
"${mod}/core/users.nix"
"${mod}/nix"
"${mod}/programs/zsh.nix"
"${mod}/programs/home-manager.nix"
{
home-manager = {
users.mihai.imports = homeImports.server;
extraSpecialArgs = specialArgs;
};
}
];
};
};
}
3 changes: 3 additions & 0 deletions hosts/io/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
''acpi_osi="Windows 2020"''
];

# nh default flake
environment.variables.FLAKE = "/home/mihai/Documents/code/dotfiles";

hardware = {
xpadneo.enable = true;
sensor.iio.enable = true;
Expand Down
14 changes: 14 additions & 0 deletions hosts/wsl/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{pkgs, lib, inputs, ...}: {
imports = [
inputs.nixos-wsl.nixosModules.default
];
# nh default flake
environment.variables.FLAKE = "/home/mihai/Documents/code/dotfiles";

wsl = {
enable = true;
defaultUser = "mihai";
};

nixpkgs.hostPlatform = "x86_64-linux";
}
3 changes: 0 additions & 3 deletions system/nix/nh.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
# nh default flake
environment.variables.FLAKE = "/home/mihai/Documents/code/dotfiles";

programs.nh = {
enable = true;
# weekly cleanup
Expand Down

0 comments on commit 8a1e428

Please sign in to comment.