Compare commits
19 commits
efab382ce2
...
698e0b6ec2
Author | SHA1 | Date | |
---|---|---|---|
![]() |
698e0b6ec2 | ||
![]() |
2622bdb144 | ||
![]() |
210bc59571 | ||
![]() |
a4bff2a186 | ||
![]() |
18902b41c3 | ||
![]() |
c426807bce | ||
![]() |
2660ebc7af | ||
![]() |
58a0d3f1d8 | ||
![]() |
e361a43b48 | ||
![]() |
f8690d90e6 | ||
![]() |
959c3c0fe9 | ||
![]() |
f40031327f | ||
![]() |
b528bbd88f | ||
![]() |
0d4265f5f1 | ||
![]() |
5f1cd851b9 | ||
![]() |
458ce0ccf6 | ||
![]() |
ed4af6d356 | ||
![]() |
b4a40fa36d | ||
75289b6cd3 |
14 changed files with 268 additions and 94 deletions
|
@ -21,8 +21,7 @@
|
||||||
./roles/network.nix
|
./roles/network.nix
|
||||||
./roles/nix.nix
|
./roles/nix.nix
|
||||||
./roles/vpn.nix
|
./roles/vpn.nix
|
||||||
./roles/private.nix
|
./roles/work.nix
|
||||||
./roles/game.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
|
@ -33,9 +32,13 @@
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
networking.firewall.enable = true;
|
networking.firewall.enable = true;
|
||||||
|
|
||||||
nixpkgs.config.permittedInsecurePackages = [ "openssl-1.0.2u" ];
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
|
"openssl-1.0.2u"
|
||||||
|
"python3.10-kerberos-1.3.1"
|
||||||
|
];
|
||||||
|
|
||||||
system.autoUpgrade.enable = true;
|
# removed for mobile working
|
||||||
|
# system.autoUpgrade.enable = true;
|
||||||
system.stateVersion = "20.03"; # We can stay here
|
system.stateVersion = "20.03"; # We can stay here
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
font:
|
font:
|
||||||
normal:
|
normal:
|
||||||
family: CaskaydiaCove Nerd Font
|
family: CaskaydiaCove Nerd Font
|
||||||
size: 12
|
size: 8
|
||||||
|
|
||||||
draw_bold_text_with_bright_colors: true
|
draw_bold_text_with_bright_colors: true
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,33 @@
|
||||||
|
# colors
|
||||||
|
set $black #000000
|
||||||
|
set $red #e75544
|
||||||
|
set $cyan #3c74f6
|
||||||
|
set $white #fafafa
|
||||||
|
set $yellow #908550
|
||||||
|
set $violet #a73ca6
|
||||||
|
#set $black2 #323232
|
||||||
|
set $white2 #f0f0f0
|
||||||
|
|
||||||
# config
|
# config
|
||||||
set $mod Mod1
|
set $mod Mod1
|
||||||
set $left h
|
set $left h
|
||||||
set $down j
|
set $down j
|
||||||
set $up k
|
set $up k
|
||||||
set $right l
|
set $right l
|
||||||
set $term alacritty
|
set $term wezterm
|
||||||
set $wallpaper /home/stefan/Downloads/bg.jpg
|
set $wallpaper /home/stefan/wall.png
|
||||||
set $lock swaylock -t -i $wallpaper --scaling=fill
|
set $lock swaylock -t -i $wallpaper --scaling=fill
|
||||||
set $font CaskaydiaCove Nerd Font 10
|
set $font CaskaydiaCove Nerd Font 10
|
||||||
set $menucolor --ff=#f8f8f2 --nf=#f8f8f2 --tf=#bd93f9 --hf=#bd93f9 --tb=#282a36 --fb=#282a36 --nb=#282a36 --hb=#282a36 --sb=#282a36
|
set $menucolor \
|
||||||
|
--tf=$white --tb=$cyan \
|
||||||
|
--ff=$black --fb=$white \
|
||||||
|
--cf=$cyan --cb=$white \
|
||||||
|
--nf=$black --nb=$white \
|
||||||
|
--af=$black --ab=$white2 \
|
||||||
|
--hf=$white --hb=$cyan \
|
||||||
|
--sf=$white --sb=$cyan
|
||||||
set $menu bemenu-run -H 23 -b -p run $menucolor
|
set $menu bemenu-run -H 23 -b -p run $menucolor
|
||||||
|
font $font
|
||||||
|
|
||||||
input "1:1:AT_Translated_Set_2_keyboard" xkb_layout de
|
input "1:1:AT_Translated_Set_2_keyboard" xkb_layout de
|
||||||
input "0:0:TUXEDO_Keyboard" xkb_layout de
|
input "0:0:TUXEDO_Keyboard" xkb_layout de
|
||||||
|
@ -17,6 +35,7 @@ input "0:0:TUXEDO_Keyboard" xkb_layout de
|
||||||
output * bg $wallpaper fill
|
output * bg $wallpaper fill
|
||||||
output "BenQ Corporation BenQ SW2700 83H03922SL0" res --custom 2560x1440@60Hz
|
output "BenQ Corporation BenQ SW2700 83H03922SL0" res --custom 2560x1440@60Hz
|
||||||
output "Dell Inc. Dell U4919DW HZVZWP2" res 5120x1440
|
output "Dell Inc. Dell U4919DW HZVZWP2" res 5120x1440
|
||||||
|
output eDP-1 scale 1.25
|
||||||
|
|
||||||
# user keybinds
|
# user keybinds
|
||||||
bindsym $mod+Return exec $term
|
bindsym $mod+Return exec $term
|
||||||
|
@ -31,6 +50,8 @@ bindsym $mod+Up exec light -A 5
|
||||||
bindsym $mod+Down exec light -U 5
|
bindsym $mod+Down exec light -U 5
|
||||||
bindsym $mod+c exec alacritty --class float -t pyCalc -e python
|
bindsym $mod+c exec alacritty --class float -t pyCalc -e python
|
||||||
bindsym $mod+i exec alacritty --class float -t insect -e insect
|
bindsym $mod+i exec alacritty --class float -t insect -e insect
|
||||||
|
bindsym $mod+m exec swayr switch-to
|
||||||
|
bindsym $mod+n exec emacsclient -cn
|
||||||
bindsym Print exec grim -g "$(slurp)" - | wl-copy -t image/png
|
bindsym Print exec grim -g "$(slurp)" - | wl-copy -t image/png
|
||||||
bindswitch --reload --locked lid:on output eDP-1 disable
|
bindswitch --reload --locked lid:on output eDP-1 disable
|
||||||
bindswitch --reload --locked lid:off output eDP-1 enable
|
bindswitch --reload --locked lid:off output eDP-1 enable
|
||||||
|
@ -42,23 +63,11 @@ for_window [title="Picture-in-Picture"] floating enable
|
||||||
for_window [title="pyCalc"] floating enable
|
for_window [title="pyCalc"] floating enable
|
||||||
for_window [title="insect"] floating enable
|
for_window [title="insect"] floating enable
|
||||||
|
|
||||||
# font
|
|
||||||
font $font
|
|
||||||
|
|
||||||
# colors
|
|
||||||
set $black #282a36
|
|
||||||
set $red #ff6188
|
|
||||||
set $cyan #78dce8
|
|
||||||
set $white #fcfcfa
|
|
||||||
set $yellow #f1fa8c
|
|
||||||
set $violet #bd93f9
|
|
||||||
set $black2 #323232
|
|
||||||
|
|
||||||
# border backgnd text indicator childborder
|
# border backgnd text indicator childborder
|
||||||
client.focused $violet $black $white $violet $violet
|
client.focused $cyan $white $black $violet $cyan
|
||||||
client.focused_inactive $black $black $white $black2 $black
|
client.focused_inactive $white2 $white2 $black $white2 $white
|
||||||
client.unfocused $black $black $white $black2 $black
|
client.unfocused $white2 $white2 $black $white2 $white
|
||||||
client.urgent $red $red $black $black2 $white
|
client.urgent $red $red $white $white2 $black
|
||||||
|
|
||||||
|
|
||||||
# movement
|
# movement
|
||||||
|
@ -132,36 +141,43 @@ bar {
|
||||||
font $font
|
font $font
|
||||||
position bottom
|
position bottom
|
||||||
colors {
|
colors {
|
||||||
background $black
|
background $white
|
||||||
statusline $white
|
statusline $black
|
||||||
separator $violet
|
separator $cyan
|
||||||
|
|
||||||
# border back text
|
# border back text
|
||||||
focused_workspace $violet $violet $black
|
focused_workspace $cyan $cyan $white
|
||||||
active_workspace $violet $violet $black
|
active_workspace $cyan $cyan $white
|
||||||
urgent_workspace $red $red $white
|
urgent_workspace $red $red $black
|
||||||
inactive_workspace $black $black $white
|
inactive_workspace $white $white $black
|
||||||
}
|
}
|
||||||
|
|
||||||
status_command i3status-rs /etc/sway/status.toml
|
status_command i3status-rs /etc/sway/status.toml
|
||||||
}
|
}
|
||||||
|
|
||||||
set $gnome-schema org.gnome.desktop.interface
|
set $gnome-schema org.gnome.desktop.interface
|
||||||
exec_always {
|
exec_always {
|
||||||
gsettings set $gnome-schema gtk-theme 'Dracula'
|
gsettings set $gnome-schema cursor-theme Adwaita
|
||||||
gsettings set $gnome-schema icon-theme 'Dracula'
|
gsettings set $gnome-schema icon-theme 'capitaine-cursors-white'
|
||||||
gsettings set $gnome-schema cursor-theme 'Capitaine Cursors - White'
|
gsettings set $gnome-schema cursor-theme 'capitaine-cursors-white'
|
||||||
}
|
}
|
||||||
|
|
||||||
# autostarts
|
# autostarts
|
||||||
exec mako --font "$font" \
|
exec mako --font "$font" \
|
||||||
--background-color=$black \
|
--background-color "$white" \
|
||||||
--border-color=$violet \
|
--border-colo "$red" \
|
||||||
--text-color=$white
|
--text-color "$black" \
|
||||||
|
--default-timeout 1000 \
|
||||||
|
--padding 10
|
||||||
exec emacs --daemon
|
exec emacs --daemon
|
||||||
exec swayidle before-sleep "$lock"
|
exec swayidle before-sleep "$lock"
|
||||||
exec /run/current-system/sw/libexec/polkit-gnome-authentication-agent-1
|
exec /run/current-system/sw/libexec/polkit-gnome-authentication-agent-1
|
||||||
exec systemctl --user import-environment DBUS_SESSION_BUS_ADDRESS XDG_RUNTIME_DIR
|
exec systemctl --user import-environment DBUS_SESSION_BUS_ADDRESS XDG_RUNTIME_DIR
|
||||||
|
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
|
||||||
exec bash -c '[ "$HOSTNAME" == sphere ] && cloudstation'
|
exec bash -c '[ "$HOSTNAME" == sphere ] && cloudstation'
|
||||||
|
exec swayrd
|
||||||
|
exec xinput set-prop "PIXA3854:00 093A:0274 Touchpad" 365 1
|
||||||
|
|
||||||
|
|
||||||
# pastebin
|
# pastebin
|
||||||
exec wl-paste --primary -t text --watch clipman store
|
exec wl-paste --primary -t text --watch clipman store
|
||||||
|
|
|
@ -1,20 +1,21 @@
|
||||||
[theme]
|
[theme]
|
||||||
name = "plain"
|
name = "plain"
|
||||||
[theme.overrides]
|
[theme.overrides]
|
||||||
idle_bg = "#282a36"
|
idle_bg = "#fafafa"
|
||||||
idle_fg = "#f8f8f2"
|
idle_fg = "#000000"
|
||||||
info_bg = "#282a36"
|
info_bg = "#fafafa"
|
||||||
info_fg = "#f8f8f2"
|
info_fg = "#000000"
|
||||||
good_bg = "#282a36"
|
good_bg = "#fafafa"
|
||||||
good_fg = "#50fa7b"
|
good_fg = "#000000"
|
||||||
warning_bg = "#282a36"
|
warning_bg = "#fafafa"
|
||||||
warning_fg = "#f1fa8c"
|
warning_fg = "#908550"
|
||||||
critical_bg = "#282a36"
|
critical_bg = "#fafafa"
|
||||||
critical_fg = "#ff5555"
|
critical_fg = "#e75544"
|
||||||
separator_bg = "#282a36"
|
separator_bg = "#fafafa"
|
||||||
separator_fg = "#bd93f9"
|
separator_fg = "#3c74f6"
|
||||||
separator = "|"
|
separator = "|"
|
||||||
|
|
||||||
|
|
||||||
[icons]
|
[icons]
|
||||||
name = "none"
|
name = "none"
|
||||||
[icons.overrides]
|
[icons.overrides]
|
||||||
|
@ -93,14 +94,6 @@ driver = "pulseaudio"
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "backlight"
|
block = "backlight"
|
||||||
|
|
||||||
[[block]]
|
|
||||||
block = "battery"
|
|
||||||
device = "BAT0"
|
|
||||||
interval = 10
|
|
||||||
format = "{percentage} ({time})"
|
|
||||||
full_format = "{percentage} ({time}) "
|
|
||||||
icons_format = " {icon} "
|
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "battery"
|
block = "battery"
|
||||||
device = "BAT1"
|
device = "BAT1"
|
||||||
|
|
42
dotfiles/wezterm.lua
Normal file
42
dotfiles/wezterm.lua
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
local wezterm = require 'wezterm';
|
||||||
|
|
||||||
|
return {
|
||||||
|
audible_bell = "Disabled",
|
||||||
|
bold_brightens_ansi_colors = true,
|
||||||
|
color_scheme = "One Light (base16)",
|
||||||
|
enable_tab_bar = false,
|
||||||
|
enable_wayland = true,
|
||||||
|
font_size = 12,
|
||||||
|
font = wezterm.font("CaskaydiaCove Nerd Font"),
|
||||||
|
window_background_opacity = 0.97,
|
||||||
|
window_close_confirmation = 'NeverPrompt',
|
||||||
|
default_prog = { '/run/current-system/sw/bin/bash' },
|
||||||
|
|
||||||
|
selection_fg = 'black',
|
||||||
|
selection_bg = '#fafafa',
|
||||||
|
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
key = 'Escape',
|
||||||
|
mods = 'CTRL',
|
||||||
|
action = wezterm.action.QuickSelect,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
window_padding = {
|
||||||
|
left = 0,
|
||||||
|
right = 0,
|
||||||
|
top = 0,
|
||||||
|
bottom = 0,
|
||||||
|
},
|
||||||
|
|
||||||
|
quick_select_patterns = {
|
||||||
|
'^([^ ]+) +(?:ClusterIP|Bound)',
|
||||||
|
'^([^ ]+) +(?:[0-9]+/[0-9]+)',
|
||||||
|
'^([^ ]+) +(?:[0-9]+ )',
|
||||||
|
'^([^ ]+) +(?:Opaque|kubernetes\\.io|helm\\.sh)',
|
||||||
|
'^([^ ]+) +(?:Active)',
|
||||||
|
'[^ ]+@[^ ]+.service',
|
||||||
|
'git push.*',
|
||||||
|
},
|
||||||
|
}
|
85
hardware/framework.nix
Normal file
85
hardware/framework.nix
Normal file
|
@ -0,0 +1,85 @@
|
||||||
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
#nixkernel = import <nixos-kernel> {};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "uas" "usb_storage" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" "i915" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "workpool/nixos/root";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/home" =
|
||||||
|
{ device = "workpool/nixos/home";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/var/lib/docker" =
|
||||||
|
{ device = "workpool/nixos/docker";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/AA17-42AD";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices =
|
||||||
|
[ { device = "/dev/disk/by-uuid/18ae41eb-e32e-46a3-9e22-3395c37782df"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.wlp166s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
|
# custom
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
networking.hostId = "f0000001";
|
||||||
|
networking.hostName = "sphere";
|
||||||
|
services.tlp.enable = true;
|
||||||
|
services.hardware.bolt.enable = true;
|
||||||
|
|
||||||
|
# framework hardware
|
||||||
|
#boot.kernelPackages = nixkernel.linuxPackages_5_19;
|
||||||
|
#boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
||||||
|
boot.kernelParams = [
|
||||||
|
"mem_sleep_default=deep"
|
||||||
|
"nvme.noacpi=1"
|
||||||
|
"i915.enable_psr=1"
|
||||||
|
];
|
||||||
|
boot.blacklistedKernelModules = [ "hid-sensor-hub" ];
|
||||||
|
hardware.acpilight.enable = true;
|
||||||
|
hardware.video.hidpi.enable = lib.mkDefault true;
|
||||||
|
services.xserver.dpi = 125;
|
||||||
|
environment.variables = {
|
||||||
|
VDPAU_DRIVER = lib.mkIf config.hardware.opengl.enable (lib.mkDefault "va_gl");
|
||||||
|
};
|
||||||
|
hardware.opengl.extraPackages = with pkgs; [
|
||||||
|
vaapiIntel
|
||||||
|
libvdpau-va-gl
|
||||||
|
intel-media-driver
|
||||||
|
];
|
||||||
|
services.tlp.settings = {
|
||||||
|
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||||
|
CPU_ENERGY_PERF_POLICY_ON_BAT = "performance";
|
||||||
|
};
|
||||||
|
}
|
|
@ -10,7 +10,7 @@ in {
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
boot.initrd.availableKernelModules =
|
boot.initrd.availableKernelModules =
|
||||||
[ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
[ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ "i915" ];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.kernelParams = [ "intel_pstate=active" ];
|
boot.kernelParams = [ "intel_pstate=active" ];
|
||||||
boot.extraModprobeConfig = ''
|
boot.extraModprobeConfig = ''
|
||||||
|
@ -29,6 +29,9 @@ in {
|
||||||
libvdpau-va-gl
|
libvdpau-va-gl
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
environment.variables = {
|
||||||
|
VDPAU_DRIVER = lib.mkIf config.hardware.opengl.enable (lib.mkDefault "va_gl");
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "tank/work/nixos";
|
device = "tank/work/nixos";
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
{ lib, fetchFromGitHub, python39Packages, wrapQtAppsHook }:
|
{ lib, fetchFromGitHub, python310Packages, wrapQtAppsHook, pkgs }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "nagstamon";
|
pname = "nagstamon";
|
||||||
version = "v3.8.0";
|
version = "v3.10.1";
|
||||||
in python39Packages.buildPythonApplication rec {
|
in python310Packages.buildPythonApplication rec {
|
||||||
inherit pname;
|
inherit pname;
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "HenriWahl";
|
owner = "HenriWahl";
|
||||||
repo = "Nagstamon";
|
repo = "Nagstamon";
|
||||||
rev = "${version}";
|
rev = version;
|
||||||
sha256 = "0a8aqw44z58pabsgxlvndnmzzvc50wrb4g12yp6zgajn40b2l8pw";
|
sha256 = "sha256-TdwvHQDDQqZ6uvdCTJCMCdivM/vaZpMrpLRMKN2y76Y=";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
@ -21,17 +21,18 @@ in python39Packages.buildPythonApplication rec {
|
||||||
wrapQtApp $out/bin/nagstamon.py
|
wrapQtApp $out/bin/nagstamon.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = with python39Packages; [
|
propagatedBuildInputs = [
|
||||||
beautifulsoup4
|
python310Packages.beautifulsoup4
|
||||||
configparser
|
python310Packages.configparser
|
||||||
dateutil
|
python310Packages.dateutil
|
||||||
keyring
|
python310Packages.keyring
|
||||||
lxml
|
python310Packages.lxml
|
||||||
psutil
|
python310Packages.psutil
|
||||||
pyqt5_with_qtmultimedia
|
python310Packages.pyqt5_with_qtmultimedia
|
||||||
requests
|
python310Packages.requests
|
||||||
setuptools
|
python310Packages.requests-kerberos
|
||||||
xlib
|
python310Packages.setuptools
|
||||||
|
python310Packages.xlib
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -42,4 +43,3 @@ in python39Packages.buildPythonApplication rec {
|
||||||
inherit version;
|
inherit version;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,10 +9,13 @@ in {
|
||||||
k9s
|
k9s
|
||||||
kind
|
kind
|
||||||
kubectl
|
kubectl
|
||||||
|
kubectx
|
||||||
kubeseal
|
kubeseal
|
||||||
|
nmap
|
||||||
pwgen
|
pwgen
|
||||||
terraform
|
terraform
|
||||||
whois
|
whois
|
||||||
|
ipcalc
|
||||||
|
|
||||||
unstable.argocd
|
unstable.argocd
|
||||||
unstable.kubernetes-helm
|
unstable.kubernetes-helm
|
||||||
|
@ -30,6 +33,11 @@ in {
|
||||||
(import ../packages/certmanager.nix)
|
(import ../packages/certmanager.nix)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.bash.shellAliases = {
|
||||||
|
kx = "kubectx";
|
||||||
|
kns = "kubens";
|
||||||
|
};
|
||||||
|
|
||||||
virtualisation.docker = {
|
virtualisation.docker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
storageDriver = "zfs";
|
storageDriver = "zfs";
|
||||||
|
|
|
@ -175,4 +175,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# yubikey support
|
||||||
|
services.udev.packages = [ pkgs.yubikey-personalization ];
|
||||||
|
services.pcscd.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,9 +10,10 @@ let
|
||||||
unstable = import <nixos-unstable> { config.allowUnfree = true; };
|
unstable = import <nixos-unstable> { config.allowUnfree = true; };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
programs.droidcam.enable = true;
|
||||||
programs.sway = {
|
programs.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
wrapperFeatures.gtk = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
bemenu
|
bemenu
|
||||||
brightnessctl
|
brightnessctl
|
||||||
|
@ -21,20 +22,18 @@ in
|
||||||
i3status-rust
|
i3status-rust
|
||||||
kanshi
|
kanshi
|
||||||
mako
|
mako
|
||||||
|
picom
|
||||||
slurp
|
slurp
|
||||||
swayidle
|
swayidle
|
||||||
swaylock
|
swaylock
|
||||||
|
swayr
|
||||||
wf-recorder
|
wf-recorder
|
||||||
xwayland
|
wofi
|
||||||
];
|
];
|
||||||
extraSessionCommands = "";
|
extraSessionCommands = "";
|
||||||
};
|
};
|
||||||
|
xdg.portal.enable = true;
|
||||||
|
|
||||||
xdg.portal = {
|
|
||||||
enable = true;
|
|
||||||
gtkUsePortal = true;
|
|
||||||
extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-wlr ];
|
|
||||||
};
|
|
||||||
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
||||||
|
|
||||||
colors = {
|
colors = {
|
||||||
|
@ -52,7 +51,6 @@ in
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
etc = {
|
etc = {
|
||||||
"i3/config".source = ../dotfiles/i3/config;
|
|
||||||
"sway/config".source = ../dotfiles/sway/config;
|
"sway/config".source = ../dotfiles/sway/config;
|
||||||
"sway/status.toml".source = ../dotfiles/sway/status.toml;
|
"sway/status.toml".source = ../dotfiles/sway/status.toml;
|
||||||
"xdg/alacritty/alacritty.yml".text = ''
|
"xdg/alacritty/alacritty.yml".text = ''
|
||||||
|
@ -88,14 +86,14 @@ in
|
||||||
key_bindings:
|
key_bindings:
|
||||||
- { key: Escape, mods: Control, action: ToggleViMode }
|
- { key: Escape, mods: Control, action: ToggleViMode }
|
||||||
'';
|
'';
|
||||||
|
"wezterm.lua".source = ../dotfiles/wezterm.lua;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.qt5ct.enable = true;
|
qt5.platformTheme = "qt5ct";
|
||||||
|
|
||||||
hardware.pulseaudio.enable = false;
|
hardware.pulseaudio.enable = false;
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
security.polkit.enable = true;
|
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
|
@ -160,9 +158,9 @@ in
|
||||||
libsForQt5.qtstyleplugins
|
libsForQt5.qtstyleplugins
|
||||||
lxappearance
|
lxappearance
|
||||||
numix-icon-theme
|
numix-icon-theme
|
||||||
|
numix-cursor-theme
|
||||||
|
|
||||||
alacritty
|
alacritty
|
||||||
ferdi
|
|
||||||
imv
|
imv
|
||||||
inkscape
|
inkscape
|
||||||
keepassxc
|
keepassxc
|
||||||
|
@ -176,6 +174,8 @@ in
|
||||||
pcmanfm
|
pcmanfm
|
||||||
pulseeffects-pw
|
pulseeffects-pw
|
||||||
qrencode
|
qrencode
|
||||||
|
uxplay
|
||||||
|
wezterm
|
||||||
|
|
||||||
solaar
|
solaar
|
||||||
gdk-pixbuf
|
gdk-pixbuf
|
||||||
|
@ -204,6 +204,7 @@ in
|
||||||
export QT_QPA_PLATFORM=wayland-egl
|
export QT_QPA_PLATFORM=wayland-egl
|
||||||
export QT_WAYLAND_FORCE_DPI=96
|
export QT_WAYLAND_FORCE_DPI=96
|
||||||
export SDL_VIDEODRIVER=wayland
|
export SDL_VIDEODRIVER=wayland
|
||||||
|
export WEZTERM_CONFIG_FILE=/etc/wezterm.lua
|
||||||
export XDG_CURRENT_DESKTOP=sway
|
export XDG_CURRENT_DESKTOP=sway
|
||||||
export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS
|
export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS
|
||||||
export XDG_SESSION_TYPE=wayland
|
export XDG_SESSION_TYPE=wayland
|
||||||
|
@ -226,8 +227,14 @@ in
|
||||||
|
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
services.printing.drivers = [ pkgs.gutenprint ];
|
services.printing.drivers = [ pkgs.gutenprint ];
|
||||||
services.avahi.enable = true;
|
services.avahi = {
|
||||||
services.avahi.nssmdns = true;
|
enable = true;
|
||||||
|
nssmdns = true;
|
||||||
hardware.opengl = { enable = true; };
|
publish = {
|
||||||
|
enable = true;
|
||||||
|
addresses = true;
|
||||||
|
workstation = true;
|
||||||
|
userServices = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,9 +3,16 @@
|
||||||
let unstable = import <nixos-unstable> { };
|
let unstable = import <nixos-unstable> { };
|
||||||
in {
|
in {
|
||||||
|
|
||||||
|
services.emacs.package = pkgs.emacsPgtk;
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(import (builtins.fetchTarball {
|
||||||
|
url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;
|
||||||
|
}))
|
||||||
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
gnumake
|
gnumake
|
||||||
go_1_17
|
go_1_19
|
||||||
rustup
|
rustup
|
||||||
shellcheck
|
shellcheck
|
||||||
unstable.golangci-lint
|
unstable.golangci-lint
|
||||||
|
@ -17,6 +24,7 @@ in {
|
||||||
(python39.withPackages
|
(python39.withPackages
|
||||||
(python-packages: with python-packages; [
|
(python-packages: with python-packages; [
|
||||||
black
|
black
|
||||||
|
diagrams
|
||||||
pymemcache
|
pymemcache
|
||||||
pyyaml
|
pyyaml
|
||||||
requests
|
requests
|
||||||
|
@ -26,7 +34,7 @@ in {
|
||||||
musl
|
musl
|
||||||
|
|
||||||
dbeaver
|
dbeaver
|
||||||
emacs
|
emacs-gtk
|
||||||
gitAndTools.delta
|
gitAndTools.delta
|
||||||
lazygit
|
lazygit
|
||||||
ltrace
|
ltrace
|
||||||
|
|
|
@ -9,5 +9,6 @@ in {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
networkmanagerapplet
|
networkmanagerapplet
|
||||||
networkmanager-vpnc
|
networkmanager-vpnc
|
||||||
|
openconnect_openssl
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,9 @@ in {
|
||||||
172.20.0.2 dashboard.kind
|
172.20.0.2 dashboard.kind
|
||||||
172.20.0.2 grafana.kind
|
172.20.0.2 grafana.kind
|
||||||
172.20.0.2 alert.kind
|
172.20.0.2 alert.kind
|
||||||
|
|
||||||
|
#127.0.0.1 auth-dev.thobits.com
|
||||||
|
127.0.0.1 database
|
||||||
'';
|
'';
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
@ -31,11 +34,13 @@ in {
|
||||||
nagstamon
|
nagstamon
|
||||||
|
|
||||||
drone-cli
|
drone-cli
|
||||||
go-jira
|
|
||||||
govc
|
govc
|
||||||
ttyd
|
ttyd
|
||||||
unstable.discord
|
unstable.discord
|
||||||
unstable.google-cloud-sdk
|
unstable.go-jira
|
||||||
|
(unstable.google-cloud-sdk.withExtraComponents [
|
||||||
|
unstable.google-cloud-sdk.components.gke-gcloud-auth-plugin
|
||||||
|
])
|
||||||
unstable.slack
|
unstable.slack
|
||||||
unstable.velero
|
unstable.velero
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue