novnc
This commit is contained in:
41
flake.lock
generated
41
flake.lock
generated
@@ -1179,12 +1179,12 @@
|
|||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1,
|
"lastModified": 1,
|
||||||
"narHash": "sha256-5Vm/6rheFRtNpvbMDxdudkXpVkE7Rbo1HDs5G602hkc=",
|
"narHash": "sha256-UlD6Lt31nfGFbjLfMpp2ajkfzMeT2nqDBWV2U/GjTEM=",
|
||||||
"path": "/nix/store/5c0w6wxg1pbd8zxjmavhm8i80w6anrx8-source/home-manager",
|
"path": "/nix/store/4sqp8rqa6la9siihnc0wp63gzhm4ybd5-source/home-manager",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "/nix/store/5c0w6wxg1pbd8zxjmavhm8i80w6anrx8-source/home-manager",
|
"path": "/nix/store/4sqp8rqa6la9siihnc0wp63gzhm4ybd5-source/home-manager",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1551,16 +1551,17 @@
|
|||||||
"nixvim": "nixvim_4"
|
"nixvim": "nixvim_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dirtyRev": "e6cb7d523142dc038c816fe5be57c19cf7a8d5f3-dirty",
|
"lastModified": 1732083712,
|
||||||
"dirtyShortRev": "e6cb7d5-dirty",
|
"narHash": "sha256-z2dKLuUHnJ8tlsZf6l+z+vbnpnb8nYBVFgwjxu609+U=",
|
||||||
"lastModified": 1727986301,
|
"ref": "refs/heads/master",
|
||||||
"narHash": "sha256-EXfHCw4gd6Ck8pu8tyHrg6pjv4Nw9u0ZD9YRN/LjMwM=",
|
"rev": "ee443227054f76f7d5177f7fe82bc58e3566760e",
|
||||||
|
"revCount": 4,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "file:///ssd1/Projects/Nixvim"
|
"url": "file:///home/nathan/Projects/Nixvim"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "file:///ssd1/Projects/Nixvim"
|
"url": "file:///home/nathan/Projects/Nixvim"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixvim_4": {
|
"nixvim_4": {
|
||||||
@@ -1646,11 +1647,11 @@
|
|||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1,
|
"lastModified": 1,
|
||||||
"narHash": "sha256-bdsn3cBMySV5RHcYNRe3gp7PWEv6Y8dg9EgLUQU+1os=",
|
"narHash": "sha256-bdsn3cBMySV5RHcYNRe3gp7PWEv6Y8dg9EgLUQU+1os=",
|
||||||
"path": "/nix/store/xk5s091i4yw1dhpyzfi8pkh8li984lp0-source/packages",
|
"path": "/nix/store/pa72c531bddbrdnz7zss6w0g8pmfghls-source/packages",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "/nix/store/xk5s091i4yw1dhpyzfi8pkh8li984lp0-source/packages",
|
"path": "/nix/store/pa72c531bddbrdnz7zss6w0g8pmfghls-source/packages",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1719,11 +1720,11 @@
|
|||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1,
|
"lastModified": 1,
|
||||||
"narHash": "sha256-hkYAqDH7SGBTDyADxBxoO2O05iUKVy3eyfOS9C5neAY=",
|
"narHash": "sha256-hkYAqDH7SGBTDyADxBxoO2O05iUKVy3eyfOS9C5neAY=",
|
||||||
"path": "/nix/store/xk5s091i4yw1dhpyzfi8pkh8li984lp0-source/programs",
|
"path": "/nix/store/pa72c531bddbrdnz7zss6w0g8pmfghls-source/programs",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "/nix/store/xk5s091i4yw1dhpyzfi8pkh8li984lp0-source/programs",
|
"path": "/nix/store/pa72c531bddbrdnz7zss6w0g8pmfghls-source/programs",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1734,11 +1735,11 @@
|
|||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1,
|
"lastModified": 1,
|
||||||
"narHash": "sha256-QahOuoQdXshu38W5uO7hLhG/yFkT7S2l8Dxicq0wdGk=",
|
"narHash": "sha256-QahOuoQdXshu38W5uO7hLhG/yFkT7S2l8Dxicq0wdGk=",
|
||||||
"path": "/nix/store/2dmlx8691iid3z7snajqg17x3zjirg45-source/programs",
|
"path": "/nix/store/6738bz1zq8420nhaa37dsvxqx5knk79m-source/programs",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "/nix/store/2dmlx8691iid3z7snajqg17x3zjirg45-source/programs",
|
"path": "/nix/store/6738bz1zq8420nhaa37dsvxqx5knk79m-source/programs",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1806,11 +1807,11 @@
|
|||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1,
|
"lastModified": 1,
|
||||||
"narHash": "sha256-0Ztx5DVQ2I7hvCK/qjGa4XTdRgbzM8rhf19m0al8lVM=",
|
"narHash": "sha256-0Ztx5DVQ2I7hvCK/qjGa4XTdRgbzM8rhf19m0al8lVM=",
|
||||||
"path": "/nix/store/2dmlx8691iid3z7snajqg17x3zjirg45-source/services/sddm",
|
"path": "/nix/store/6738bz1zq8420nhaa37dsvxqx5knk79m-source/services/sddm",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "/nix/store/2dmlx8691iid3z7snajqg17x3zjirg45-source/services/sddm",
|
"path": "/nix/store/6738bz1zq8420nhaa37dsvxqx5knk79m-source/services/sddm",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1841,12 +1842,12 @@
|
|||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1,
|
"lastModified": 1,
|
||||||
"narHash": "sha256-MrACNZd3xvImQGCvwlnYN7MyGjf4unB5v8VcUj2vnCA=",
|
"narHash": "sha256-j+hJofUljxc7sAkUNuv+kQeTvUSnye8bYkg5Jx85gNE=",
|
||||||
"path": "/nix/store/5c0w6wxg1pbd8zxjmavhm8i80w6anrx8-source/system-config",
|
"path": "/nix/store/4sqp8rqa6la9siihnc0wp63gzhm4ybd5-source/system-config",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "/nix/store/5c0w6wxg1pbd8zxjmavhm8i80w6anrx8-source/system-config",
|
"path": "/nix/store/4sqp8rqa6la9siihnc0wp63gzhm4ybd5-source/system-config",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
system.url = "./system-config";
|
system.url = "./system-config";
|
||||||
|
|
||||||
nixvim.url = "/ssd1/Projects/Nixvim";
|
nixvim.url = "/home/nathan/Projects/Nixvim";
|
||||||
|
|
||||||
nathan.url = "./home-manager";
|
nathan.url = "./home-manager";
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,15 @@
|
|||||||
{ inputs, ... }: {
|
{ config, lib, inputs, ... }: {
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.impermanence.nixosModules.home-manager.impermanence
|
inputs.impermanence.nixosModules.home-manager.impermanence
|
||||||
];
|
];
|
||||||
|
|
||||||
|
options.homeconfig.impermanence.enable = lib.options.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.homeconfig.impermanence.enable {
|
||||||
|
|
||||||
home.persistence."/persist/home/nathan" = {
|
home.persistence."/persist/home/nathan" = {
|
||||||
|
|
||||||
@@ -21,4 +28,6 @@
|
|||||||
];
|
];
|
||||||
allowOther = true;
|
allowOther = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,6 +83,7 @@
|
|||||||
hyprctl setcursor Bibata-Modern-Classic 16 &
|
hyprctl setcursor Bibata-Modern-Classic 16 &
|
||||||
wayvnc &
|
wayvnc &
|
||||||
hyprctl reload &
|
hyprctl reload &
|
||||||
|
novnc &
|
||||||
'')
|
'')
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "colorPrefix" ''
|
(pkgs.writeShellScriptBin "colorPrefix" ''
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
config = lib.mkIf config.homeconfig.wayvnc.enable {
|
config = lib.mkIf config.homeconfig.wayvnc.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
wayvnc
|
wayvnc
|
||||||
|
novnc
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
hostName = "homebox";
|
hostName = "homebox";
|
||||||
nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
firewall.allowedTCPPorts = [ 22 80 443 9000 8080 8081 ];
|
firewall.allowedTCPPorts = [ 22 80 443 9000 8080 6080 ];
|
||||||
hosts = {
|
hosts = {
|
||||||
"192.168.100.11" = [ "blunkall.us" "*.blunkall.us" "*.local.blunkall.us" ];
|
"192.168.100.11" = [ "blunkall.us" "*.blunkall.us" "*.local.blunkall.us" ];
|
||||||
};
|
};
|
||||||
@@ -209,6 +209,7 @@
|
|||||||
inputs.nathan.homeManagerModule
|
inputs.nathan.homeManagerModule
|
||||||
{
|
{
|
||||||
config.homeconfig = {
|
config.homeconfig = {
|
||||||
|
impermanence.enable = true;
|
||||||
hyprland.enable = true;
|
hyprland.enable = true;
|
||||||
swaylock.enable = true;
|
swaylock.enable = true;
|
||||||
wal.enable = true;
|
wal.enable = true;
|
||||||
@@ -259,6 +260,7 @@
|
|||||||
|
|
||||||
gitlab.enable = true;
|
gitlab.enable = true;
|
||||||
|
|
||||||
|
nixos-remote.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -8,6 +8,5 @@
|
|||||||
./jellyfin
|
./jellyfin
|
||||||
./pihole
|
./pihole
|
||||||
./nextcloud
|
./nextcloud
|
||||||
./nixos-remote
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,202 +0,0 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
|
||||||
|
|
||||||
options.sysconfig.opts.virtualization.nixos-remote.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.sysconfig.opts.virtualization.nixos-remote.enable {
|
|
||||||
|
|
||||||
containers.nixos-remote = {
|
|
||||||
|
|
||||||
autoStart = false;
|
|
||||||
privateNetwork = true;
|
|
||||||
hostAddress = "192.168.100.10";
|
|
||||||
localAddress = "192.168.100.17";
|
|
||||||
|
|
||||||
forwardPorts = [
|
|
||||||
{
|
|
||||||
containerPort = 5900;
|
|
||||||
hostPort = 5910;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
extraFlags = [ "-U" ];
|
|
||||||
|
|
||||||
config = {
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
inputs.home-manager.nixosModules.default
|
|
||||||
];
|
|
||||||
|
|
||||||
users.users.nixos = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "wheel" ];
|
|
||||||
initialPassword = "1234";
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager = {
|
|
||||||
extraSpecialArgs = { inherit inputs; };
|
|
||||||
backupFileExtension = "backup";
|
|
||||||
users.nixos = {
|
|
||||||
|
|
||||||
home.username = "nixos";
|
|
||||||
|
|
||||||
home.homeDirectory = "/home/nixos";
|
|
||||||
|
|
||||||
home.file = {
|
|
||||||
".config/hypr/hyprland.conf".text = ''
|
|
||||||
|
|
||||||
monitor=HEADLESS-2,1920x1080@60,0x0,1
|
|
||||||
|
|
||||||
execOnce = ${pkgs.dunst}/bin/dunst & ${pkgs.wayvnc}/bin/wayvnc 0.0.0.0 &
|
|
||||||
|
|
||||||
input {
|
|
||||||
kb_layout = us
|
|
||||||
kb_variant =
|
|
||||||
kb_model =
|
|
||||||
kb_options =
|
|
||||||
kb_rules =
|
|
||||||
|
|
||||||
follow_mouse = 1
|
|
||||||
|
|
||||||
touchpad {
|
|
||||||
natural_scroll = yes
|
|
||||||
}
|
|
||||||
|
|
||||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
|
||||||
}
|
|
||||||
|
|
||||||
cursor {
|
|
||||||
no_hardware_cursors = true
|
|
||||||
}
|
|
||||||
|
|
||||||
general {
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
||||||
|
|
||||||
gaps_in = 5
|
|
||||||
gaps_out = 4
|
|
||||||
border_size = 2
|
|
||||||
col.active_border = $color1 $color5 100deg
|
|
||||||
col.inactive_border = $color0
|
|
||||||
|
|
||||||
layout = dwindle
|
|
||||||
}
|
|
||||||
decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
||||||
|
|
||||||
rounding = 2
|
|
||||||
|
|
||||||
blur {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
drop_shadow = yes
|
|
||||||
shadow_range = 4
|
|
||||||
shadow_render_power = 3
|
|
||||||
col.shadow = rgba(1a1a1aee)
|
|
||||||
}
|
|
||||||
|
|
||||||
animations {
|
|
||||||
enabled = yes
|
|
||||||
|
|
||||||
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
|
||||||
|
|
||||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
|
||||||
|
|
||||||
animation = windows, 1, 7, myBezier
|
|
||||||
animation = windowsOut, 1, 7, default, popin 80%
|
|
||||||
animation = border, 1, 10, default
|
|
||||||
animation = borderangle, 1, 8, default
|
|
||||||
animation = fade, 1, 7, default
|
|
||||||
animation = workspaces, 1, 6, default
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dwindle {
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
|
||||||
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
||||||
preserve_split = yes # you probably want this
|
|
||||||
}
|
|
||||||
|
|
||||||
master {
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
|
||||||
new_status = "master"
|
|
||||||
}
|
|
||||||
|
|
||||||
gestures {
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
||||||
workspace_swipe = off
|
|
||||||
}
|
|
||||||
|
|
||||||
misc {
|
|
||||||
disable_hyprland_logo = false
|
|
||||||
disable_splash_rendering = true
|
|
||||||
force_default_wallpaper = 2
|
|
||||||
}
|
|
||||||
|
|
||||||
$mainMod = ALT
|
|
||||||
|
|
||||||
bind = $mainMod, E, exec, kitty
|
|
||||||
|
|
||||||
bind = $mainMod, B, exec, firefox
|
|
||||||
|
|
||||||
bind = $mainMod, Q, killactive,
|
|
||||||
|
|
||||||
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
nix = {
|
|
||||||
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
|
||||||
settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
xserver = {
|
|
||||||
enable = true;
|
|
||||||
videoDrivers = [ "nvidia" ];
|
|
||||||
};
|
|
||||||
displayManager = {
|
|
||||||
enable = true;
|
|
||||||
sddm = {
|
|
||||||
enable = true;
|
|
||||||
wayland.enable = true;
|
|
||||||
settings = {
|
|
||||||
Autologin = {
|
|
||||||
User = "nixos";
|
|
||||||
Session = "hyprland";
|
|
||||||
Relogin = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
environment = {
|
|
||||||
sessionVariables = {
|
|
||||||
WLR_BACKENDS = "headless";
|
|
||||||
WLR_LIBINPUT_NO_DEVICES = "1";
|
|
||||||
NIXOS_OZONE_WL = "1";
|
|
||||||
};
|
|
||||||
systemPackages = with pkgs; [
|
|
||||||
kitty
|
|
||||||
firefox-wayland
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
xwayland.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -165,7 +165,6 @@
|
|||||||
rule = "Host(`gitlab.blunkall.us`)";
|
rule = "Host(`gitlab.blunkall.us`)";
|
||||||
service = "gitlab";
|
service = "gitlab";
|
||||||
tls.certResolver = "cloudflare";
|
tls.certResolver = "cloudflare";
|
||||||
#middlewares = [ "authentik" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nextcloud = {
|
nextcloud = {
|
||||||
@@ -230,6 +229,8 @@
|
|||||||
|
|
||||||
pihole.loadBalancer.servers = [ { url = "http://192.168.100.10:8080"; } ];
|
pihole.loadBalancer.servers = [ { url = "http://192.168.100.10:8080"; } ];
|
||||||
|
|
||||||
|
novnc.loadBalancer.servers = [ { url = "http://192.168.100.10:6080"; } ];
|
||||||
|
|
||||||
nextcloud.loadBalancer.servers = [ { url = "http://192.168.100.15:80"; } ];
|
nextcloud.loadBalancer.servers = [ { url = "http://192.168.100.15:80"; } ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user