Move from home.file to xdg.configFile where applicable
This commit is contained in:
parent
dc3d5381c5
commit
98378d3078
|
@ -2,9 +2,8 @@
|
|||
{
|
||||
config = lib.mkIf config.home.desktop.enable {
|
||||
programs.mangohud.enable = true;
|
||||
home.file = {
|
||||
# These options exist in Nixlang, but the order is not respected.
|
||||
".config/MangoHud/MangoHud.conf".text = ''
|
||||
xdg.configFile."MangoHud/MangoHud.conf".text = ''
|
||||
table_columns=2
|
||||
frametime=0
|
||||
legacy_layout=0
|
||||
|
@ -22,5 +21,4 @@
|
|||
frame_timing
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
{
|
||||
home = lib.mkIf config.home.desktop.enable {
|
||||
packages = with pkgs; [
|
||||
config = lib.mkIf config.home.desktop.enable {
|
||||
home.packages = with pkgs; [
|
||||
pcmanfm
|
||||
file-roller
|
||||
];
|
||||
file = {
|
||||
".config/pcmanfm/default/pcmanfm.conf".text = ''
|
||||
xdg.configFile = {
|
||||
"pcmanfm/default/pcmanfm.conf".text = ''
|
||||
[config]
|
||||
bm_open_method=0
|
||||
|
||||
|
@ -35,7 +35,7 @@
|
|||
pathbar_mode_buttons=0
|
||||
'';
|
||||
|
||||
".config/libfm/libfm.conf".text = ''
|
||||
"libfm/libfm.conf".text = ''
|
||||
[config]
|
||||
single_click=0
|
||||
use_trash=1
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
{ pkgs, config, ... }:
|
||||
{ pkgs, config, lib, ... }:
|
||||
{
|
||||
imports = [ ./scripts ];
|
||||
|
||||
config = lib.mkIf config.home.desktop.enable {
|
||||
programs.rofi = {
|
||||
enable = config.home.desktop.enable;
|
||||
enable = true;
|
||||
package = pkgs.rofi-wayland;
|
||||
terminal = "foot";
|
||||
font = "${config.look.fonts.main} 14";
|
||||
|
@ -130,4 +131,5 @@
|
|||
bemoji
|
||||
rofi-bluetooth
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
imports = [ ./small ];
|
||||
|
||||
programs.fastfetch.enable = true;
|
||||
home.file.".config/fastfetch/config.jsonc".source = ./config.jsonc;
|
||||
xdg.configFile."fastfetch/config.jsonc".source = ./config.jsonc;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home = {
|
||||
packages = with pkgs; [ (pkgs.writeScriptBin "pfetch" "fastfetch --config ~/.config/fastfetch/small.jsonc") ];
|
||||
file.".config/fastfetch/small.jsonc".source = ./small.jsonc;
|
||||
};
|
||||
home.packages = with pkgs; [ (pkgs.writeScriptBin "pfetch" "fastfetch --config ~/.config/fastfetch/small.jsonc") ];
|
||||
xdg.configFile."fastfetch/small.jsonc".source = ./small.jsonc;
|
||||
}
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
enable = true;
|
||||
preset = "headphones";
|
||||
};
|
||||
home.file = {
|
||||
".config/easyeffects/output/headphones.json".source = ./headphones.json;
|
||||
};
|
||||
xdg.configFile."easyeffects/output/headphones.json".source = ./headphones.json;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
default = {};
|
||||
};
|
||||
|
||||
config.home.file.".config/niri/config.kdl".text = ''
|
||||
config.xdg.configFile."niri/config.kdl".text = ''
|
||||
${builtins.readFile config.home.niri.settings.autostart}
|
||||
${builtins.readFile config.home.niri.settings.hotkeys}
|
||||
${builtins.readFile config.home.niri.settings.inputs}
|
||||
|
|
Loading…
Reference in a new issue