add polkit and attempt to autostart swaybg in niri
This commit is contained in:
6
system/defaults/security.nix
Normal file
6
system/defaults/security.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
security.polkit = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Configure systems to use Hydra as a binary cache substituter
|
||||
nix.settings = {
|
||||
substituters = [
|
||||
"http://rhiannon.coven.systems:3000"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"rhiannon.coven.systems:f8KiECrc7rY3vDMSy7sACyToxRLPECtQTcm6p8LFMPk="
|
||||
];
|
||||
};
|
||||
}
|
||||
16
system/services/swaybg.nix
Normal file
16
system/services/swaybg.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
systemd.user.services.swaybg-autoset = {
|
||||
enable = true;
|
||||
description = "start swaybg on login";
|
||||
after = ["waybar.service"];
|
||||
requires = ["network-online.target"];
|
||||
before = ["multi-user.target"];
|
||||
wantedBy = ["multi-user.target"];
|
||||
serviceConfig = {
|
||||
ExecStart = "swaybg -i ~/Downloads/wp.jpg";
|
||||
User = "autumn";
|
||||
Group = "users";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -9,14 +9,17 @@
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
|
||||
../packages/bincache.nix
|
||||
# ../packages/bincache.nix
|
||||
#system configs
|
||||
../defaults/system.nix
|
||||
../defaults/locale.nix
|
||||
../defaults/boot.nix
|
||||
../defaults/locale.nix
|
||||
../defaults/security.nix
|
||||
../defaults/services.nix
|
||||
../defaults/system.nix
|
||||
../defaults/users.nix
|
||||
|
||||
../services/swaybg.nix
|
||||
|
||||
#system packages
|
||||
../packages/sddm/sddm.nix
|
||||
|
||||
@@ -55,7 +58,11 @@
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
fileSystems."/mnt/hoardfrost" = {
|
||||
device = "//10.0.0.217/public";
|
||||
fsType = "cifs";
|
||||
options = [ "username=autumn" "password=autest" "x-systemd.automount" "noauto"];
|
||||
};
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
|
||||
@@ -71,7 +78,7 @@
|
||||
};
|
||||
# hardware.nvidia.prime.intelBusId = "PCI:0@0:2:0";
|
||||
# hardware.nvidia.prime.nvidiaBusId = "PCI:1@0:0:0";
|
||||
# hardware.nvidia.prime.sync.enable = true;
|
||||
# hardware.nvidia.prime.sync.enable = true;o
|
||||
# hardware.nvidia.prime.offload.enable = false;
|
||||
# hardware.nvidia.prime.offload.enableOffloadCmd = false;
|
||||
|
||||
@@ -95,6 +102,8 @@
|
||||
moonlight-qt
|
||||
pcmanfm
|
||||
gvfs
|
||||
vlc
|
||||
cifs-utils
|
||||
# wayland
|
||||
# wayland-protocols
|
||||
# libxkbcommon
|
||||
|
||||
Reference in New Issue
Block a user