reorganise config for laptop, set up remmina (rdp client)

This commit is contained in:
greyweather committed 2026-07-16 23:59:35 +01:00
1 parent 9a3530aa6a
commit f4815424fa
10 files changed
+322 -49

No files matched your search

+3 -30
View File
@@ -14,8 +14,8 @@ in {
./hardware-configuration.nix
"${modules-dir}/zsh.nix"
"${modules-dir}/display-managers/lightdm.nix"
#"${modules-dir}/desktop-environments/gnome.nix"
"${modules-dir}/window-managers/niri.nix"
./modules/hardware-fixes.nix
];
boot.loader.limine = {
@@ -23,39 +23,12 @@ in {
maxGenerations = 10;
};
services.iio-niri.enable = true;
stylix.enable = true;
stylix.image = ../../assets/wallpapers/kitagawa.jpg;
stylix.polarity = "dark";
systemd.sleep.settings.Sleep = {
AllowSuspend = "no";
AllowHibernation = "yes";
};
services.logind.settings.Login.HandleLidSwitch = "ignore";
systemd.services.disable-lid-wakeup = {
wantedBy = [ "multi-user.target" ];
description = "Prevent the lid switch from waking laptop from hibernation";
serviceConfig = {
Type = "simple";
User = "root";
ExecStart = "${pkgs.busybox}/bin/sh -c \"echo LID > /proc/acpi/wakeup\"";
};
};
systemd.services.disable-tty-switch = {
wantedBy = [ "multi-user.target" ];
description = "Prevent alt+arrow keys from switching tty";
serviceConfig = {
Type = "simple";
User = "root";
ExecStart = "${pkgs.busybox}/bin/sh -c \"${pkgs.kbd}/bin/dumpkeys -k|grep -v Incr_Console|grep -v Decr_Console|${pkgs.kbd}/bin/loadkeys\"";
};
};
services.udisks2.enable = true;
services.fprintd.enable = true;
security.pam.services.login.fprintAuth = true;
security.pam.services.sudo.fprintAuth = true;
+19
View File
@@ -36,6 +36,8 @@ in {
kdePackages.filelight
remmina
freerdp
jmtpfs
loupe
];
stylix.targets.floorp.profileNames = [ "default" ];
@@ -100,4 +102,21 @@ in {
};
};
};
programs.zsh.shellAliases = {
wake-takamaki = "ssh sakamoto .local/bin/wake-takamaki";
shutdown-takamaki = "ssh takamaki global-shutdown";
reboot-takamaki = "ssh takamaki global-reboot";
switch-takamaki-os = "ssh takamaki switch-os";
};
home.activation = {
linkRemminaPresets = lib.hm.dag.entryAfter ["writeBoundary"] ''
#!/bin/bash
if [ -d /home/grey/.local/share/remmina ]; then
rm -rf /home/grey/.local/share/remmina
fi
ln -s /home/grey/nixos/assets/dotfiles/remmina-presets /home/grey/.local/share/remmina
'';
};
}
+32
View File
@@ -0,0 +1,32 @@
{
pkgs,
config,
...
}: {
systemd.sleep.settings.Sleep = {
AllowSuspend = "no";
AllowHibernation = "yes";
};
services.logind.settings.Login.HandleLidSwitch = "ignore";
systemd.services.disable-lid-wakeup = {
wantedBy = [ "multi-user.target" ];
description = "Prevent the lid switch from waking laptop from hibernation";
serviceConfig = {
Type = "simple";
User = "root";
ExecStart = "${pkgs.busybox}/bin/sh -c \"echo LID > /proc/acpi/wakeup\"";
};
};
systemd.services.disable-tty-switch = {
wantedBy = [ "multi-user.target" ];
description = "Prevent alt+arrow keys from switching tty";
serviceConfig = {
Type = "simple";
User = "root";
ExecStart = "${pkgs.busybox}/bin/sh -c \"${pkgs.kbd}/bin/dumpkeys -k|grep -v Incr_Console|grep -v Decr_Console|${pkgs.kbd}/bin/loadkeys\"";
};
};
}