Compare commits

..

7 commits

Author SHA1 Message Date
73fc0bd445 cleanup 2024-05-20 17:38:15 +02:00
be72e7565a install some software 2024-05-20 17:38:01 +02:00
4592d78501 sway configuration 2024-05-20 17:37:28 +02:00
a42ed7e30f setup plex 2024-05-20 17:36:08 +02:00
82b9870fd3 mount additional disks 2024-05-20 17:35:47 +02:00
3b4e682ab4 Add tailscale auto login 2024-05-20 17:35:31 +02:00
2d30294ba2 Activate sshd 2024-05-20 17:33:39 +02:00
4 changed files with 66 additions and 4 deletions

View file

@ -28,6 +28,7 @@
git git
neovide neovide
(nerdfonts.override { fonts = [ "Iosevka" ]; }) (nerdfonts.override { fonts = [ "Iosevka" ]; })
mpv
obsidian obsidian
powertop powertop
qutebrowser qutebrowser
@ -118,6 +119,9 @@
enable = true; enable = true;
nix-direnv.enable = true; nix-direnv.enable = true;
}; };
firefox = {
enable = true;
};
fish = { fish = {
enable = true; enable = true;
loginShellInit = '' loginShellInit = ''
@ -381,6 +385,20 @@
playerctld.enable = true; playerctld.enable = true;
swayidle = { swayidle = {
enable = true; enable = true;
events = [
{ event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock -fF"; }
];
timeouts = [
{
timeout = 300;
command = "${pkgs.swaylock}/bin/swaylock -fF";
}
{
timeout = 330;
command = "${pkgs.sway}/bin/swaymsg 'output * dpms off'";
resumeCommand = "${pkgs.sway}/bin/swaymsg 'output * dpms on'";
}
];
}; };
syncthing = { syncthing = {
enable = true; enable = true;
@ -408,6 +426,10 @@
enable = true; enable = true;
config = { config = {
gaps = { gaps = {
inner = 50;
vertical = 100;
horizontal = 600;
smartGaps = true;
smartBorders = "on"; smartBorders = "on";
}; };
input = { input = {
@ -436,6 +458,20 @@
"XF86AudioPrev" = "exec playerctl previous"; "XF86AudioPrev" = "exec playerctl previous";
}; };
modifier = "Mod4"; modifier = "Mod4";
output = {
DP-1 = {
resolution = "3840x2160@30Hz";
position = "1920 0";
# background = "/home/muhh/Sync/Backgrounds/wald.jpg fill";
scale = "1.0";
};
HDMI-A-1 = {
resolution = "1920x1080@60.000Hz";
transform = "180";
position = "0 0";
# background = "/home/muhh/Sync/Backgrounds/pfuetze.jpg fill";
};
};
seat = { seat = {
"*" = { "*" = {
hide_cursor = "5000"; hide_cursor = "5000";

View file

@ -23,6 +23,16 @@
fsType = "vfat"; fsType = "vfat";
}; };
fileSystems."/storage/family" =
{ device = "/dev/disk/by-uuid/896c11dc-d275-4992-99e6-fddc394a7bf1";
fsType = "xfs";
};
fileSystems."/storage/muhh" =
{ device = "/dev/disk/by-uuid/8b716713-359b-4bac-8951-a35405dccd4c";
fsType = "xfs";
};
swapDevices = [ ]; swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking

View file

@ -51,9 +51,13 @@
LC_TIME = "de_DE.UTF-8"; LC_TIME = "de_DE.UTF-8";
}; };
security = {
rtkit.enable = true;
pam.services.swaylock = {};
};
services.flatpak.enable = true; services.flatpak.enable = true;
services.fwupd.enable = true; services.fwupd.enable = true;
security.rtkit.enable = true; services.openssh.enable = true;
services.pipewire = { services.pipewire = {
enable = true; enable = true;
alsa.enable = true; alsa.enable = true;
@ -62,8 +66,17 @@
# If you want to use JACK applications, uncomment this # If you want to use JACK applications, uncomment this
#jack.enable = true; #jack.enable = true;
}; };
services.plex = {
enable = true;
dataDir = "/var/lib/plex";
openFirewall = true;
user = "plex";
group = "plex";
};
services.tailscale = { services.tailscale = {
enable = true; enable = true;
authKeyFile = config.sops.secrets.tailscale_auth_key.path;
}; };
# Configure keymap in X11 # Configure keymap in X11
@ -72,7 +85,9 @@
xkb.options = "compose:ralt"; xkb.options = "compose:ralt";
}; };
# sops.defaultSopsFile = "/home/muhh/nix-config/secrets/secrets.yaml"; sops.defaultSopsFile = ../secrets/secrets.yaml;
sops.age.keyFile = "/home/muhh/.config/sops/age/keys.txt";
sops.secrets.tailscale_auth_key = {};
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
users.users.muhh = { users.users.muhh = {
isNormalUser = true; isNormalUser = true;

View file

@ -1,4 +1,5 @@
just_a_test: ENC[AES256_GCM,data:HDhSG6BejOadBaeW,iv:idSJWRevqi4h/gaTREOt5tGfamRcxSUSmaelgyZUmu0=,tag:jo5lugFHpdjGeo/RtN86DA==,type:str] just_a_test: ENC[AES256_GCM,data:HDhSG6BejOadBaeW,iv:idSJWRevqi4h/gaTREOt5tGfamRcxSUSmaelgyZUmu0=,tag:jo5lugFHpdjGeo/RtN86DA==,type:str]
tailscale_auth_key: ENC[AES256_GCM,data:1zT4rp8bxLLllmSPzC/n+Kg4m//zVynXdX8JnyO5G6mHdUrl46yYuWeyx4HNSRJmBicjVCvLMSnNeVMktg==,iv:cyInU7JNrTAnYtgF5e9jt+WKvNrumaWmRofr7++JQWA=,tag:ztKvGc1t8qeFKMbSbaq5Tw==,type:str]
mail: mail:
privat: privat:
address: ENC[AES256_GCM,data:MdODBjT/vGmoZidXYppWX0EN,iv:Ai2YVodb/vOEyCK2spnH1vwPJrdvqIHM40ZGhALHq8A=,tag:ge1dIDEgiSYVJGNwuq+qKw==,type:str] address: ENC[AES256_GCM,data:MdODBjT/vGmoZidXYppWX0EN,iv:Ai2YVodb/vOEyCK2spnH1vwPJrdvqIHM40ZGhALHq8A=,tag:ge1dIDEgiSYVJGNwuq+qKw==,type:str]
@ -32,8 +33,8 @@ sops:
SEFxb2UwbDFiSG5QdzVWRk02b3lIZDQKYF4Vv3FwvKv3uwACRXb/jwD6Q5rh39Yu SEFxb2UwbDFiSG5QdzVWRk02b3lIZDQKYF4Vv3FwvKv3uwACRXb/jwD6Q5rh39Yu
w7J86gsX7Yh9Wm65y+CW1JE8EN72mhBbYwve3lK8twDjxmLhYOMjIg== w7J86gsX7Yh9Wm65y+CW1JE8EN72mhBbYwve3lK8twDjxmLhYOMjIg==
-----END AGE ENCRYPTED FILE----- -----END AGE ENCRYPTED FILE-----
lastmodified: "2024-04-11T15:20:09Z" lastmodified: "2024-05-19T16:46:00Z"
mac: ENC[AES256_GCM,data:k6sIben6qmbR4vdHKjbPXfbycAoJC4nDwkb5c8EF1tBCyPM294XUK9DJ8MrEtijB7snp6q5hbFOxeYm4saTdUCmIA0OJi09Gto+mKbPn4oUWu1IGOqphe+71JBsdC5VK0X7C/6AskMpGHTjVFzEMSCNG1QlWwqjbj+nooMxT5X4=,iv:Mw3mrFx/CAmuCplqVcXiUDBEeb0bqK0Y4kTCZxMise8=,tag:seTx8hAi/8oGRCwpv9Qdug==,type:str] mac: ENC[AES256_GCM,data:xEOM5qqtGEeCmOi+z+MdZ3h4jLjj9aLn6EFGmvHkLsZCG4DWCc7KTaSOTyTVRnpsL/Nsuhqj88QNaM+ekBPA3120C64IKM6J/ZEfOriLfrmL8uzwMXPPqTMkCDs3ALNNontMl/zUL0LYGJ5bcraIQr0DBaup0DuRD5zcGVjUUCs=,iv:2/WrjzoKNCTfwogz0ITC+FeSg/gPCTTR1s+OtIJ3Esc=,tag:flAkHZ9+jIsEsQXChCc0vQ==,type:str]
pgp: [] pgp: []
unencrypted_suffix: _unencrypted unencrypted_suffix: _unencrypted
version: 3.8.1 version: 3.8.1