Rework and add WSL host
parent
e305aed18f
commit
88dd130058
@ -0,0 +1,14 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
home-manager
|
||||
ntfsprogs
|
||||
pipewire
|
||||
pulseaudio
|
||||
wget
|
||||
];
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
{ config
|
||||
, lib
|
||||
, pkgs
|
||||
, ...
|
||||
}: {
|
||||
options.graphical = lib.mkOption {
|
||||
default = true;
|
||||
type = lib.types.bool;
|
||||
description = "Whether this is a graphical target";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.graphical {
|
||||
# Audio
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
|
||||
layout = "us";
|
||||
xkbVariant = "";
|
||||
|
||||
displayManager.gdm.enable = true;
|
||||
desktopManager.gnome.enable = true;
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 3389 ];
|
||||
services.gnome.gnome-remote-desktop.enable = true;
|
||||
};
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
{ config
|
||||
, lib
|
||||
, pkgs
|
||||
, ...
|
||||
}: {
|
||||
config = lib.mkIf (!config.wsl.enable) {
|
||||
boot.loader = {
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
efiSysMountPoint = "/boot/efi";
|
||||
};
|
||||
};
|
||||
|
||||
networking.nameservers = [ "192.168.1.1" "87.62.97.64" ];
|
||||
|
||||
virtualisation.virtualbox.host.enable = true;
|
||||
virtualisation.docker.enable = true;
|
||||
};
|
||||
}
|
@ -1,65 +1,69 @@
|
||||
{ config
|
||||
, osConfig
|
||||
, lib
|
||||
, ... }: {
|
||||
config.xdg.dataFile.backgrounds.source = ../wallpapers;
|
||||
config = lib.mkIf osConfig.graphical {
|
||||
xdg.dataFile.backgrounds.source = ../wallpapers;
|
||||
|
||||
config.dconf.settings = {
|
||||
"org/gnome/desktop/interface" = {
|
||||
color-scheme = "prefer-dark";
|
||||
enable-hot-corners = false;
|
||||
};
|
||||
"org/gnome/shell" = {
|
||||
disable-user-extensions = false;
|
||||
dconf.settings = {
|
||||
"org/gnome/desktop/interface" = {
|
||||
color-scheme = "prefer-dark";
|
||||
enable-hot-corners = false;
|
||||
};
|
||||
"org/gnome/shell" = {
|
||||
disable-user-extensions = false;
|
||||
|
||||
disabled-extensions = [ ];
|
||||
disabled-extensions = [ ];
|
||||
|
||||
enabled-extensions = [
|
||||
"color-picker@tuberry"
|
||||
"just-perfection-desktop@just-perfection"
|
||||
"unite@hardpixel.eu"
|
||||
"user-theme@gnome-shell-extensions.gcampax.github.com"
|
||||
];
|
||||
enabled-extensions = [
|
||||
"color-picker@tuberry"
|
||||
"just-perfection-desktop@just-perfection"
|
||||
"unite@hardpixel.eu"
|
||||
"user-theme@gnome-shell-extensions.gcampax.github.com"
|
||||
];
|
||||
|
||||
favorite-apps = [
|
||||
"firefox.desktop"
|
||||
"emacs.desktop"
|
||||
];
|
||||
};
|
||||
"org/gnome/shell/extensions/just-perfection" = {
|
||||
panel = false;
|
||||
panel-in-overview = true;
|
||||
};
|
||||
"org/gnome/shell/extensions/unite" = {
|
||||
hide-window-titlebars = "always";
|
||||
};
|
||||
"org/gnome/shell/extensions/color-picker" = {
|
||||
enable-shortcut = true;
|
||||
};
|
||||
"org/gnome/shell/extensions/user-theme" = {
|
||||
name = "Catppuccin-Mocha";
|
||||
};
|
||||
"org/gnome/desktop/interface/gtk-theme" = {
|
||||
name = "Catppuccin-Mocha";
|
||||
};
|
||||
"org/gnome/desktop/peripherals/mouse" = {
|
||||
accel-profile = "flat";
|
||||
};
|
||||
"org/gnome/desktop/background" = {
|
||||
color-shading-type = "solid";
|
||||
picture-options = "zoom";
|
||||
picture-uri = "file:///${config.xdg.dataHome}/backgrounds/ctp-glitch-portrait.png";
|
||||
picture-uri-dark = "file:///${config.xdg.dataHome}/backgrounds/ctp-glitch-portrait.png";
|
||||
primary-color = "#212123";
|
||||
secondary-color = "#212123";
|
||||
};
|
||||
"org/gnome/desktop/screensaver" = {
|
||||
color-shading-type = "solid";
|
||||
picture-options = "zoom";
|
||||
picture-uri = "file:///${config.xdg.dataHome}/backgrounds/ctp-glitch-portrait.png";
|
||||
primary-color = "#212123";
|
||||
secondary-color = "212123";
|
||||
};
|
||||
"org/gnome/desktop/wm/keybindings" = {
|
||||
close = [ "<Super>q" ];
|
||||
favorite-apps = [
|
||||
"firefox.desktop"
|
||||
"emacs.desktop"
|
||||
];
|
||||
};
|
||||
"org/gnome/shell/extensions/just-perfection" = {
|
||||
panel = false;
|
||||
panel-in-overview = true;
|
||||
};
|
||||
"org/gnome/shell/extensions/unite" = {
|
||||
hide-window-titlebars = "always";
|
||||
};
|
||||
"org/gnome/shell/extensions/color-picker" = {
|
||||
enable-shortcut = true;
|
||||
};
|
||||
"org/gnome/shell/extensions/user-theme" = {
|
||||
name = "Catppuccin-Mocha";
|
||||
};
|
||||
"org/gnome/desktop/interface/gtk-theme" = {
|
||||
name = "Catppuccin-Mocha";
|
||||
};
|
||||
"org/gnome/desktop/peripherals/mouse" = {
|
||||
accel-profile = "flat";
|
||||
};
|
||||
"org/gnome/desktop/background" = {
|
||||
color-shading-type = "solid";
|
||||
picture-options = "zoom";
|
||||
picture-uri = "file:///${config.xdg.dataHome}/backgrounds/ctp-glitch-portrait.png";
|
||||
picture-uri-dark = "file:///${config.xdg.dataHome}/backgrounds/ctp-glitch-portrait.png";
|
||||
primary-color = "#212123";
|
||||
secondary-color = "#212123";
|
||||
};
|
||||
"org/gnome/desktop/screensaver" = {
|
||||
color-shading-type = "solid";
|
||||
picture-options = "zoom";
|
||||
picture-uri = "file:///${config.xdg.dataHome}/backgrounds/ctp-glitch-portrait.png";
|
||||
primary-color = "#212123";
|
||||
secondary-color = "212123";
|
||||
};
|
||||
"org/gnome/desktop/wm/keybindings" = {
|
||||
close = [ "<Super>q" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue