Lots of config
This commit is contained in:
parent
6fe5df4636
commit
f8cc052f3c
9 changed files with 98 additions and 48 deletions
|
@ -90,23 +90,23 @@
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
console.keyMap = "sv-latin1";
|
console.keyMap = "sv-latin1";
|
||||||
|
|
||||||
systemd.services.vdirsyncer = {
|
# systemd.services.vdirsyncer = {
|
||||||
serviceConfig.Type = "oneshot";
|
# serviceConfig.Type = "oneshot";
|
||||||
serviceConfig.User = "fw";
|
# serviceConfig.User = "fw";
|
||||||
path = with pkgs; [ vdirsyncer ];
|
# path = with pkgs; [ vdirsyncer ];
|
||||||
script = ''
|
# script = ''
|
||||||
vdirsyncer -c "/home/fw/.config/vdirsyncer/config" sync
|
# vdirsyncer -c "/home/fw/.config/vdirsyncer/config" sync
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
systemd.timers.vdirsyncer = {
|
# systemd.timers.vdirsyncer = {
|
||||||
wantedBy = [ "timers.target" ];
|
# wantedBy = [ "timers.target" ];
|
||||||
partOf = [ "vdirsyncer.service" ];
|
# partOf = [ "vdirsyncer.service" ];
|
||||||
timerConfig = {
|
# timerConfig = {
|
||||||
OnBootSec = "5m";
|
# OnBootSec = "5m";
|
||||||
OnUnitActiveSec = "5m";
|
# OnUnitActiveSec = "5m";
|
||||||
Unit = "vdirsyncer.service";
|
# Unit = "vdirsyncer.service";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
environment.systemPackages = [(
|
environment.systemPackages = [(
|
||||||
pkgs.catppuccin-sddm.override {
|
pkgs.catppuccin-sddm.override {
|
||||||
|
|
|
@ -76,14 +76,28 @@
|
||||||
xorg.xmodmap
|
xorg.xmodmap
|
||||||
playerctl
|
playerctl
|
||||||
openssl
|
openssl
|
||||||
|
libiconv
|
||||||
|
pkg-config
|
||||||
libsecret
|
libsecret
|
||||||
|
go
|
||||||
|
ghorg
|
||||||
|
libsixel
|
||||||
|
kompose
|
||||||
|
|
||||||
#Terminal
|
#Terminal
|
||||||
|
weechat
|
||||||
|
jira-cli-go
|
||||||
|
texliveSmall
|
||||||
|
jq
|
||||||
|
|
||||||
|
vscode
|
||||||
|
|
||||||
sc-im
|
sc-im
|
||||||
gnuplot
|
gnuplot
|
||||||
bison
|
bison
|
||||||
|
|
||||||
vdirsyncer
|
vdirsyncer
|
||||||
|
todoist
|
||||||
todoman
|
todoman
|
||||||
calcure
|
calcure
|
||||||
python311Packages.urwid
|
python311Packages.urwid
|
||||||
|
@ -117,10 +131,10 @@
|
||||||
azuredatastudio
|
azuredatastudio
|
||||||
adrs
|
adrs
|
||||||
opentofu
|
opentofu
|
||||||
kubernetes
|
|
||||||
lazydocker
|
lazydocker
|
||||||
|
|
||||||
#Desktop
|
#Desktop
|
||||||
|
openvpn3
|
||||||
aerc
|
aerc
|
||||||
firefox
|
firefox
|
||||||
thunderbird
|
thunderbird
|
||||||
|
@ -171,6 +185,7 @@
|
||||||
nodePackages_latest.vls
|
nodePackages_latest.vls
|
||||||
nodePackages_latest.volar
|
nodePackages_latest.volar
|
||||||
vscode-langservers-extracted
|
vscode-langservers-extracted
|
||||||
|
gopls
|
||||||
|
|
||||||
#VPN
|
#VPN
|
||||||
openvpn
|
openvpn
|
||||||
|
@ -183,7 +198,7 @@
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
|
|
||||||
xsession.enable = true;
|
xsession.enable = true;
|
||||||
xsession.windowManager.command = if myhostname == "laptop" then "/home/fw/nix/.xinitrc.laptop" else "/home/fw/nix/.xinitrc";
|
xsession.windowManager.command = if myhostname == "laptop" then "/home/fw/nix/.xinitrc.laptop" else if myhostname == "jobb" then "/home/fw/nix/.xinitrc.jobb" else "/home/fw/nix/.xinitrc";
|
||||||
|
|
||||||
home.username = "fw";
|
home.username = "fw";
|
||||||
home.homeDirectory = "/home/fw";
|
home.homeDirectory = "/home/fw";
|
||||||
|
|
|
@ -27,6 +27,7 @@ networking.firewall = {
|
||||||
{ from = 8000; to = 8010; }
|
{ from = 8000; to = 8010; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
|
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
|
@ -16,34 +16,37 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = myhostname;
|
networking.hostName = myhostname;
|
||||||
networking.firewall = {
|
|
||||||
enable = true;
|
services.k3s = {
|
||||||
allowedTCPPorts = [ 80 443 8384 22000];
|
enable = true;
|
||||||
};
|
role = "server";
|
||||||
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
|
token = "supersupersecretkey";
|
||||||
services = {
|
clusterInit = true;
|
||||||
syncthing = {
|
};
|
||||||
enable = true;
|
|
||||||
user = "fw";
|
# services = {
|
||||||
dataDir = "/home/fw/syncthing";
|
# syncthing = {
|
||||||
configDir = "/home/fw/.config/syncthing";
|
# enable = true;
|
||||||
overrideDevices = true; # overrides any devices added or deleted through the WebUI
|
# user = "fw";
|
||||||
overrideFolders = true; # overrides any folders added or deleted through the WebUI
|
# dataDir = "/home/fw/syncthing";
|
||||||
guiAddress = "0.0.0.0:8384";
|
# configDir = "/home/fw/.config/syncthing";
|
||||||
settings = {
|
# overrideDevices = true; # overrides any devices added or deleted through the WebUI
|
||||||
devices = {
|
# overrideFolders = true; # overrides any folders added or deleted through the WebUI
|
||||||
"desktop" = { id = "BGEQVAA-JZM7DQB-7NFEDQ6-K7Q3HQL-P6OSNJ2-TMA3N7B-E6RP3HQ-OAMWJQL"; };
|
# guiAddress = "0.0.0.0:8384";
|
||||||
"laptop" = { id = "2VEN7O3-PB3G2MK-XJI7R5Z-6MHTNN2-WMXERIX-6G7QWSK-VKSWOSH-Q5WFDAI"; };
|
# settings = {
|
||||||
};
|
# devices = {
|
||||||
folders = {
|
# "desktop" = { id = "BGEQVAA-JZM7DQB-7NFEDQ6-K7Q3HQL-P6OSNJ2-TMA3N7B-E6RP3HQ-OAMWJQL"; };
|
||||||
"Documents" = { # Name of folder in Syncthing, also the folder ID
|
# "laptop" = { id = "2VEN7O3-PB3G2MK-XJI7R5Z-6MHTNN2-WMXERIX-6G7QWSK-VKSWOSH-Q5WFDAI"; };
|
||||||
path = "/home/fw/docs"; # Which folder to add to Syncthing
|
# };
|
||||||
devices = [ "desktop" ]; # Which devices to share the folder with
|
# folders = {
|
||||||
};
|
# "Documents" = { # Name of folder in Syncthing, also the folder ID
|
||||||
};
|
# path = "/home/fw/docs"; # Which folder to add to Syncthing
|
||||||
};
|
# devices = [ "desktop" ]; # Which devices to share the folder with
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
services.xserver.dpi = 140;
|
services.xserver.dpi = 140;
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,11 @@
|
||||||
|
|
||||||
networking.hostName = myhostname;
|
networking.hostName = myhostname;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
dotnet-sdk_8
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
services.xserver.dpi = 140;
|
services.xserver.dpi = 140;
|
||||||
services = {
|
services = {
|
||||||
syncthing = {
|
syncthing = {
|
||||||
|
|
|
@ -43,9 +43,18 @@
|
||||||
dev="nix develop --command fish";
|
dev="nix develop --command fish";
|
||||||
spot="steam-run ~/program/spotify_player";
|
spot="steam-run ~/program/spotify_player";
|
||||||
sc="sc-im";
|
sc="sc-im";
|
||||||
|
e="nvim";
|
||||||
|
c="ssh";
|
||||||
|
home="home-manager switch --flake $HM_DIR";
|
||||||
|
reb="sudo nixos-rebuild switch --flake $SYSTEM_DIR";
|
||||||
|
cam="jira issue create && jira issue assign && jira issue move";
|
||||||
};
|
};
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
set fish_greeting # Disable greeting
|
set fish_greeting # Disable greeting
|
||||||
|
set FLAKE_DIR "/home/fw/nix"
|
||||||
|
set HM_DIR "$FLAKE_DIR#fw@jobb"
|
||||||
|
set SYSTEM_DIR "$FLAKE_DIR#jobb"
|
||||||
|
set GOPRIVATE "github.com/iFacts"
|
||||||
# Macchiato
|
# Macchiato
|
||||||
set -Ux FZF_DEFAULT_OPTS "--color=fg:#f8f8f2,bg:#282a36,hl:#bd93f9 --color=fg+:#f8f8f2,bg+:#44475a,hl+:#bd93f9 --color=info:#ffb86c,prompt:#50fa7b,pointer:#ff79c6 --color=marker:#ff79c6,spinner:#ffb86c,header:#6272a4"
|
set -Ux FZF_DEFAULT_OPTS "--color=fg:#f8f8f2,bg:#282a36,hl:#bd93f9 --color=fg+:#f8f8f2,bg+:#44475a,hl+:#bd93f9 --color=info:#ffb86c,prompt:#50fa7b,pointer:#ff79c6 --color=marker:#ff79c6,spinner:#ffb86c,header:#6272a4"
|
||||||
|
|
||||||
|
@ -54,6 +63,7 @@
|
||||||
# --color=bg+:#ccd0da,bg:#eff1f5,spinner:#dc8a78,hl:#d20f39 \
|
# --color=bg+:#ccd0da,bg:#eff1f5,spinner:#dc8a78,hl:#d20f39 \
|
||||||
# --color=fg:#4c4f69,header:#d20f39,info:#8839ef,pointer:#dc8a78 \
|
# --color=fg:#4c4f69,header:#d20f39,info:#8839ef,pointer:#dc8a78 \
|
||||||
# --color=marker:#dc8a78,fg+:#4c4f69,prompt:#8839ef,hl+:#d20f39"
|
# --color=marker:#dc8a78,fg+:#4c4f69,prompt:#8839ef,hl+:#d20f39"
|
||||||
|
fish_add_path /home/fw/.cargo/bin
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,5 +4,8 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "FredzyW";
|
userName = "FredzyW";
|
||||||
userEmail = "fredrik@wastring.com";
|
userEmail = "fredrik@wastring.com";
|
||||||
|
extraConfig = {
|
||||||
|
url."git@github.com:".insteadOf = "https://github.com/";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,8 @@
|
||||||
mode = "no-cursor";
|
mode = "no-cursor";
|
||||||
};
|
};
|
||||||
# theme = "Catppuccin-Latte";
|
# theme = "Catppuccin-Latte";
|
||||||
theme = "Catppuccin-Macchiato";
|
theme = "Catppuccin-Mocha";
|
||||||
|
# theme = "Catppuccin-Macchiato";
|
||||||
settings = {
|
settings = {
|
||||||
confirm_os_window_close = 2;
|
confirm_os_window_close = 2;
|
||||||
cursor_shape = "block";
|
cursor_shape = "block";
|
||||||
|
|
|
@ -50,6 +50,18 @@
|
||||||
user = "github";
|
user = "github";
|
||||||
identityFile = "/home/fw/.ssh/github-ssh-key";
|
identityFile = "/home/fw/.ssh/github-ssh-key";
|
||||||
};
|
};
|
||||||
|
"backup1" = {
|
||||||
|
hostname = "192.168.0.220";
|
||||||
|
port = 22;
|
||||||
|
user = "fw";
|
||||||
|
identityFile = "/home/fw/.ssh/fw-ssh-key";
|
||||||
|
};
|
||||||
|
"dashboard" = {
|
||||||
|
hostname = "192.168.0.159";
|
||||||
|
port = 22;
|
||||||
|
user = "fw";
|
||||||
|
identityFile = "/home/fw/.ssh/fw-ssh-key";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue