misc forgot to commit

This commit is contained in:
Christoph Hollizeck 2024-10-28 12:01:00 +01:00
parent 42fdf7d511
commit 21cefd0fef
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
10 changed files with 151 additions and 118 deletions

View file

@ -15,6 +15,7 @@ let
cfg = config.${namespace}.desktop.addons.hyprpaper;
username = config.${namespace}.user.name;
picture-path = "/home/${username}/Pictures/firewatch.jpg";
in
{
options.${namespace}.desktop.addons.hyprpaper = {
@ -28,15 +29,18 @@ in
"Pictures/firewatch.jpg".source = ./firewatch.jpg;
};
wayland.windowManager.hyprland.settings.exec-once = [
''hyprctl hyprpaper wallpaper "DP-2,${picture-path}"''
];
services.hyprpaper = {
enable = true;
settings = {
preload = [
"/home/${username}/Pictures/firewatch.jpg"
];
wallpaper = "monitor DP-2, /home/${username}/Pictures/firewatch.jpg";
preload = [ picture-path ];
wallpaper = "DP-2,${picture-path}";
};
};
};
};
}

View file

@ -109,7 +109,6 @@ in
];
exec-once = [
"hyprpaper"
"waybar"
"dunst"
"systemctl --user start plasma-polkit-agent"

View file

@ -16,7 +16,7 @@ in
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ factorio-headless ];
environment.systemPackages = with pkgs; [ pkgs.factorio-headless ];
sops = {
secrets = {
factorio_token = {
@ -31,7 +31,7 @@ in
};
templates."extraSettingsFile.json".content = ''
{
"name": "Alles Nix!",
"name": "SpaceAgeHolli",
"description": "Trying to run a factorio-headless-server on my nix system",
"tags": ["vanilla"],
"max_players": 10,
@ -53,8 +53,8 @@ in
public = true;
lan = true;
nonBlockingSaving = true;
autosave-interval = 5;
loadLatestSave = true;
autosave-interval = 15;
saveName = "SpaceAge";
extraSettingsFile = config.sops.templates."extraSettingsFile.json".path;
};
};

View file

@ -17,7 +17,7 @@ in
config = mkIf cfg.enable {
boot = {
kernelPackages = pkgs.linuxPackages_6_10;
kernelPackages = pkgs.linuxPackages_latest;
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;