Compare commits
2 commits
c43d96fe2a
...
03b6a3a9e8
| Author | SHA1 | Date | |
|---|---|---|---|
| 03b6a3a9e8 | |||
| e19ae46087 |
2 changed files with 49 additions and 10 deletions
|
|
@ -26,7 +26,7 @@ in
|
|||
};
|
||||
|
||||
# hack, homemanager needs it
|
||||
environment.systemPackages = [ pkgs.dconf ];
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# build failure
|
||||
programs.nix-ld.enable = false;
|
||||
|
|
|
|||
|
|
@ -1,11 +1,50 @@
|
|||
{
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
in
|
||||
{
|
||||
flake.modules.nixos."hosts/wsl" = {
|
||||
topLevel: {
|
||||
flake.modules.nixos."hosts/wsl" =
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
nixpkgs = {
|
||||
config.allowUnfree = true;
|
||||
hostPlatform = lib.systems.elaborate "x86_64-linux";
|
||||
};
|
||||
programs.dconf.enable = true;
|
||||
|
||||
};
|
||||
imports =
|
||||
with topLevel.config.flake.modules.nixos;
|
||||
[
|
||||
inputs.nixos-wsl.nixosModules.default
|
||||
|
||||
base
|
||||
cholli
|
||||
]
|
||||
|
||||
++ [
|
||||
{
|
||||
home-manager.users.cholli = {
|
||||
imports = with topLevel.config.flake.modules.homeManager; [
|
||||
inputs.catppuccin.homeModules.catppuccin
|
||||
|
||||
# components
|
||||
base
|
||||
|
||||
# Activate all user based config
|
||||
cholli
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
wsl = {
|
||||
enable = true;
|
||||
defaultUser = topLevel.config.flake.meta.users.cholli.username;
|
||||
|
||||
usbip = {
|
||||
enable = true;
|
||||
autoAttach = [ "3-1" ];
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue