Compare commits
No commits in common. "c792ddc54b479e29ec61c6a81836daf542ef0797" and "d58bd057ac5a0d1de9d1b4144608fa98ab069eff" have entirely different histories.
c792ddc54b
...
d58bd057ac
@ -5,7 +5,7 @@
|
|||||||
./configuration.nix
|
./configuration.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../modules/nixos/flatpak.nix
|
../../modules/nixos/flatpak.nix
|
||||||
../../modules/nixos/hyprland.nix
|
../../modules/nixos/gdm.nix
|
||||||
../../modules/nixos/monitoring.nix
|
../../modules/nixos/monitoring.nix
|
||||||
../../modules/nixos/nvidia.nix
|
../../modules/nixos/nvidia.nix
|
||||||
../../modules/nixos/pipewire.nix
|
../../modules/nixos/pipewire.nix
|
||||||
|
@ -5,21 +5,13 @@
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
restic
|
restic
|
||||||
];
|
];
|
||||||
|
services.udev.packages = [
|
||||||
# the udev rule:
|
(pkgs.writeTextFile {
|
||||||
services.udev.extraRules = ''
|
name = "bakc";
|
||||||
ACTION=="add", SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="backup-restic", TAG+="systemd", ENV{SYSTEMD_WANTS}="backup-restic.service"
|
text = ''
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="3297", ATTRS{idProduct}=="1969", MODE="0666", TAG+="uaccess", SYMLINK+="stm32_dfu", GROUP="plugdev"
|
||||||
'';
|
'';
|
||||||
|
destination = "/etc/udev/rules.d/50-zsa.rules";
|
||||||
# the systemd service:
|
})
|
||||||
systemd.services.backup-restic = {
|
];
|
||||||
description = "Backup using restic (triggered when USB drive is plugged in)";
|
|
||||||
after = [ "local-fs.target" ];
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "oneshot";
|
|
||||||
# TODO: adapt command
|
|
||||||
ExecStart = "${pkgs.restic}/bin/restic backup /home/username";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
@ -1,5 +0,0 @@
|
|||||||
{pkgs, ...}:
|
|
||||||
{
|
|
||||||
wayland.windowManager.hyprland.enable = true;
|
|
||||||
programs.kitty.enable = true;
|
|
||||||
}
|
|
@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
programs.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = [
|
|
||||||
# ... other packages
|
|
||||||
pkgs.hyprlandPlugins.hyprspace
|
|
||||||
pkgs.hyprlandPlugins.hyprgrass
|
|
||||||
];
|
|
||||||
|
|
||||||
}
|
|
@ -17,18 +17,22 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
# prime = {
|
prime = {
|
||||||
# nvidiaBusId = "PCI:1:0:0";
|
sync.enable = true;
|
||||||
# intelBusId = "PCI:0:2:0";
|
# reverseSync.enable = true;
|
||||||
# };
|
# allowExternalGpu = false;
|
||||||
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
|
intelBusId = "PCI:0:2:0";
|
||||||
|
|
||||||
|
};
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
powerManagement.enable = true;
|
powerManagement.enable = false;
|
||||||
powerManagement.finegrained = false;
|
powerManagement.finegrained = false;
|
||||||
open = false;
|
open = false;
|
||||||
nvidiaSettings = false;
|
nvidiaSettings = false;
|
||||||
|
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
|
package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
|
||||||
version = "565.77";
|
version = "565.77"; # latest
|
||||||
sha256_64bit = "sha256-CnqnQsRrzzTXZpgkAtF7PbH9s7wbiTRNcM0SPByzFHw=";
|
sha256_64bit = "sha256-CnqnQsRrzzTXZpgkAtF7PbH9s7wbiTRNcM0SPByzFHw=";
|
||||||
sha256_aarch64 = "sha256-LSAYUnhfnK3rcuPe1dixOwAujSof19kNOfdRHE7bToE=";
|
sha256_aarch64 = "sha256-LSAYUnhfnK3rcuPe1dixOwAujSof19kNOfdRHE7bToE=";
|
||||||
openSha256 = "sha256-Fxo0t61KQDs71YA8u7arY+503wkAc1foaa51vi2Pl5I=";
|
openSha256 = "sha256-Fxo0t61KQDs71YA8u7arY+503wkAc1foaa51vi2Pl5I=";
|
||||||
@ -36,7 +40,7 @@
|
|||||||
persistencedSha256 = "sha256-wnDjC099D8d9NJSp9D0CbsL+vfHXyJFYYgU3CwcqKww=";
|
persistencedSha256 = "sha256-wnDjC099D8d9NJSp9D0CbsL+vfHXyJFYYgU3CwcqKww=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# overwrite the blacklists set previously
|
|
||||||
boot.extraModprobeConfig = "";
|
boot.extraModprobeConfig = "";
|
||||||
boot.blacklistedKernelModules = [];
|
boot.blacklistedKernelModules = [];
|
||||||
services.udev.extraRules = "";
|
services.udev.extraRules = "";
|
||||||
|
@ -6,7 +6,7 @@ with lib.hm.gvariant;
|
|||||||
../modules/home-manager/code.nix
|
../modules/home-manager/code.nix
|
||||||
../modules/home-manager/fish.nix
|
../modules/home-manager/fish.nix
|
||||||
../modules/home-manager/flatpaks.nix
|
../modules/home-manager/flatpaks.nix
|
||||||
# ../modules/home-manager/gnome-shell-customization.nix
|
../modules/home-manager/gnome-shell-customization.nix
|
||||||
../modules/home-manager/keepassxc.nix
|
../modules/home-manager/keepassxc.nix
|
||||||
../modules/home-manager/obsidian.nix
|
../modules/home-manager/obsidian.nix
|
||||||
../modules/home-manager/owncloud-client.nix
|
../modules/home-manager/owncloud-client.nix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user