nixos,home: remove dotfiles.nix

This commit is contained in:
Guanran Wang 2023-11-10 01:14:03 +08:00
parent 7e43f11693
commit 676885ff56
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
11 changed files with 38 additions and 51 deletions

View file

@ -1,50 +0,0 @@
{...}: let
homePath = ../resources/dotfiles;
binPath = ../resources/dotfiles/bin;
configPath = ../resources/dotfiles/config;
dataPath = ../resources/dotfiles/data;
in {
xdg.configFile = {
"fontconfig" = {
source = "${configPath}/fontconfig";
recursive = true;
};
#"picom" = {
# source = "${configPath}/picom";
# recursive = true;
#};
#"makepkgs.conf" = {
# source = "${configPath}/makepkgs.conf";
#};
#"alsoft.conf" = {
# source = "${configPath}/alsoft.conf";
#};
};
xdg.dataFile = {
"backgrounds" = {
source = "${dataPath}/backgrounds";
recursive = true;
};
#"flatpak" = {
# source = "${dataPath}/flatpak";
# recursive = true;
#};
};
home.sessionPath = ["$HOME/.local/bin"];
home.file = {
".local/bin" = {
source = "${binPath}";
recursive = true;
};
".drirc" = {
source = "${homePath}/.drirc";
recursive = true;
};
".xinitrc" = {
source = "${homePath}/.xinitrc";
recursive = true;
};
};
}

View file

@ -1,5 +1,9 @@
{pkgs, ...}: { {pkgs, ...}: {
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
xdg.configFile."fontconfig" = {
source = ../resources/dotfiles/config/fontconfig;
recursive = true;
};
home.packages = with pkgs; [ home.packages = with pkgs; [
### Sans ### Sans
inter inter

View file

@ -16,7 +16,6 @@
../xdg ../xdg
../home.nix ../home.nix
../dotfiles.nix
../fonts.nix ../fonts.nix
../i18n.nix ../i18n.nix
../spicetify.nix ../spicetify.nix

View file

@ -4,6 +4,8 @@
./components/feh.nix ./components/feh.nix
./components/picom.nix ./components/picom.nix
./components/polybar.nix ./components/polybar.nix
./components/rofi.nix
./components/scripts.nix
./components/sxhkd.nix ./components/sxhkd.nix
./components/udiskie.nix ./components/udiskie.nix
]; ];
@ -29,4 +31,11 @@
}; };
}; };
}; };
home.file = {
".xinitrc" = {
source = "../dotfiles/.xinitrc";
recursive = true;
};
};
} }

View file

@ -1,3 +1,4 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [./wallpaper.nix];
home.packages = with pkgs; [feh]; home.packages = with pkgs; [feh];
} }

View file

@ -0,0 +1,9 @@
{...}: {
home.sessionPath = ["$HOME/.local/bin"];
home.file = {
".local/bin" = {
source = ../../dotfiles/bin;
recursive = true;
};
};
}

View file

@ -1,3 +1,4 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [./wallpaper.nix];
home.packages = with pkgs; [swww]; home.packages = with pkgs; [swww];
} }

View file

@ -0,0 +1,8 @@
{...}: {
xdg.dataFile = {
"backgrounds" = {
source = ../../dotfiles/data/backgrounds;
recursive = true;
};
};
}

View file

@ -1,5 +1,8 @@
# why is this placed in ./wm # why is this placed in ./wm
{pkgs, ...}: { {pkgs, ...}: {
imports = [
./components/wallpaper.nix
];
home.packages = with pkgs.gnomeExtensions; [ home.packages = with pkgs.gnomeExtensions; [
# GNOME extensions # GNOME extensions
arcmenu arcmenu

View file

@ -6,6 +6,7 @@
imports = [ imports = [
./components/dunst.nix ./components/dunst.nix
./components/rofi.nix ./components/rofi.nix
./components/scripts.nix
./components/swayidle.nix ./components/swayidle.nix
./components/swaylock.nix ./components/swaylock.nix
./components/swww.nix ./components/swww.nix

View file

@ -7,9 +7,11 @@
imports = [ imports = [
./components/dunst.nix ./components/dunst.nix
./components/rofi.nix ./components/rofi.nix
./components/scripts.nix
./components/swayidle.nix ./components/swayidle.nix
./components/swaylock.nix ./components/swaylock.nix
./components/udiskie.nix ./components/udiskie.nix
./components/wallpaper.nix
./components/waybar.nix ./components/waybar.nix
]; ];