Nix #2

Merged
DashieTM merged 23 commits from nix into main 2024-04-22 20:38:46 +02:00
4 changed files with 35 additions and 21 deletions
Showing only changes of commit 98da22c22f - Show all commits

View file

@ -1,6 +1,7 @@
{config, ...}:{
{ config, ... }: {
imports = [
../../modules/ironbar_config.nix
../../modules/hyprpaper_config.nix
];
wayland.windowManager.hyprland.settings.monitor = [
# default
@ -30,5 +31,17 @@
# monitor right
"3,monitor:HDMI-A-1, default:true"
];
programs.monitor = "DP-1";
programs.ironbar.monitor = "DP-1";
programs.hyprland.hyprpaper = ''
#load
preload = /home/dashie/Pictures/backgrounds/shinobu_2k.jpg
preload = /home/dashie/Pictures/backgrounds/shino_wide.png
preload = /home/dashie/Pictures/backgrounds/shinobu_1200.jpg
#set
wallpaper = DP-2,/home/dashie/Pictures/backgrounds/shinobu_2k.jpg
wallpaper = DP-1,/home/dashie/Pictures/backgrounds/shino_wide.png
wallpaper = HDMI-A-1,/home/dashie/Pictures/backgrounds/shinobu_1200.jpg
splash = true
'';
}

View file

@ -63,7 +63,7 @@
];
# this password will only last for the first login
# e.g. login, then change to whatever else, this also ensures no public hash is available
hashedPassword = "firstlogin";
password = "firstlogin";
};
nix.settings = {

View file

@ -0,0 +1,14 @@
{ lib, ... }: {
options.programs.hyprland = {
hyprpaper = lib.mkOption {
default = '''';
example = ''
hyprpaper stuff
'';
type = lib.types.lines;
description = ''
Extra settings for foo.
'';
};
};
}

View file

@ -1,18 +1,5 @@
#{
# xdg.configFile."hypr/hyprpaper.conf" = {
# text =
# ''
# #load
# preload = /home/dashie/Pictures/backgrounds/shinobu_2k.jpg
# preload = /home/dashie/Pictures/backgrounds/shino_wide.png
# preload = /home/dashie/Pictures/backgrounds/shinobu_1200.jpg
#
# #set
# wallpaper = DP-2,/home/dashie/Pictures/backgrounds/shinobu_2k.jpg
# wallpaper = DP-1,/home/dashie/Pictures/backgrounds/shino_wide.png
# wallpaper = HDMI-A-1,/home/dashie/Pictures/backgrounds/shinobu_1200.jpg
# splash = true
# '';
# };
#}
{}
{ config, ... }: {
xdg.configFile."hypr/hyprpaper.conf" = {
text = config.programs.hyprland.hyprpaper;
};
}