Fix audio and gpg bugs
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
imports = [
|
||||
inputs.impermanence.nixosModules.impermanence
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
./configs/pipewire
|
||||
./configs/zsh
|
||||
./configs/neovim
|
||||
./configs/tmux
|
||||
@@ -27,6 +28,7 @@
|
||||
postDeviceCommands = lib.mkAfter (builtins.readFile ./scripts/impermanence.sh);
|
||||
};
|
||||
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
supportedFilesystems = [ "btrfs" "ntfs" ];
|
||||
kernelParams = [ "loglevel=3" "quiet" ];
|
||||
consoleLogLevel = 0;
|
||||
|
@@ -4,7 +4,6 @@
|
||||
imports = [
|
||||
../common
|
||||
../../users/nick
|
||||
./configs/pipewire
|
||||
];
|
||||
|
||||
time.timeZone = "Europe/Athens";
|
||||
|
@@ -10,7 +10,8 @@
|
||||
systemd.user.services.gpg-agent-import = {
|
||||
Unit = {
|
||||
Description = "Auto-import GPG keys";
|
||||
After = [ "gpg-agent.socket" "sops-nix.service" ];
|
||||
Requires = [ "sops-nix.service" "gpg-agent.socket" ];
|
||||
After = [ "sops-nix.service" "gpg-agent.socket" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
@@ -18,9 +19,6 @@
|
||||
ExecStart = pkgs.writeScript "import-gpg-keys" ''
|
||||
#!${pkgs.runtimeShell}
|
||||
|
||||
find "$HOME"/.gnupg -type f -exec chmod 600 {} \;
|
||||
find "$HOME"/.gnupg -type d -exec chmod 700 {} \;
|
||||
|
||||
for keyfile in "$HOME"/.config/sops-nix/secrets/gpg-agent/*.key; do
|
||||
passfile="''${keyfile%.key}.pass"
|
||||
|
||||
|
@@ -43,6 +43,7 @@ in
|
||||
packages = with pkgs; [
|
||||
rofi-wayland
|
||||
swww
|
||||
pavucontrol
|
||||
];
|
||||
|
||||
stateVersion = "24.05";
|
||||
@@ -101,7 +102,7 @@ in
|
||||
) normalUsers;
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [ "d /persist/home/ 0755 root root -" ] ++ lib.attrsets.mapAttrsToList (user: config:
|
||||
"d /persist${config.home} 0700 ${user} users -"
|
||||
) normalUsers;
|
||||
systemd.tmpfiles.rules = [ "d /persist/home/ 0755 root root -" ] ++
|
||||
lib.attrsets.mapAttrsToList ( user: config: "d /persist${config.home} 0700 ${user} users -" ) normalUsers ++
|
||||
lib.attrsets.mapAttrsToList ( user: config: "d ${config.home}/.gnupg 0700 ${user} users -" ) normalUsers;
|
||||
}
|
||||
|
Reference in New Issue
Block a user