Move most configs to nix.
This commit is contained in:
parent
c254fa0aa2
commit
cb3259abe6
1
.config/btop
Symbolic link
1
.config/btop
Symbolic link
|
@ -0,0 +1 @@
|
|||
/etc/top/btop
|
1
.config/gtk-3.0
Symbolic link
1
.config/gtk-3.0
Symbolic link
|
@ -0,0 +1 @@
|
|||
/etc/gtk/gtk-3.0
|
1
.config/gtk-4.0
Symbolic link
1
.config/gtk-4.0
Symbolic link
|
@ -0,0 +1 @@
|
|||
/etc/gtk/gtk-4.0
|
1
.config/htop
Symbolic link
1
.config/htop
Symbolic link
|
@ -0,0 +1 @@
|
|||
/etc/top/htop
|
|
@ -105,8 +105,8 @@
|
|||
./module/common/Firewall.nix
|
||||
./module/common/Font.nix
|
||||
./module/common/Git.nix
|
||||
./module/common/Gtk.nix
|
||||
./module/common/Kernel.nix
|
||||
# ./module/common/Ld.nix
|
||||
./module/common/Locale.nix
|
||||
./module/common/Network.nix
|
||||
./module/common/Nix.nix
|
||||
|
@ -117,8 +117,10 @@
|
|||
./module/common/Sshd.nix
|
||||
./module/common/Swap.nix
|
||||
./module/common/Tmux.nix
|
||||
./module/common/Top.nix
|
||||
./module/common/Users.nix
|
||||
./module/common/Wallpaper.nix
|
||||
# ./module/common/Ld.nix
|
||||
];
|
||||
|
||||
# Function to create a host.
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
environment.shellAliases = lib.mkForce {};
|
||||
environment.variables.BASH_MODULE_PATH = "/etc/bash/module/";
|
||||
environment.variables.BASH_PATH = "/etc/bash/";
|
||||
programs.bash.interactiveShellInit = ''source /etc/bash/Bashrc.sh'';
|
||||
programs.bash.interactiveShellInit = "source /etc/bash/Bashrc.sh";
|
||||
}
|
||||
|
|
3
.config/linux/system/module/common/Gtk.nix
Normal file
3
.config/linux/system/module/common/Gtk.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{ environment, ... }: {
|
||||
environment.etc.gtk.source = ./gtk;
|
||||
}
|
|
@ -2,4 +2,5 @@
|
|||
environment.variables.NIXPKGS_ALLOW_UNFREE = "1";
|
||||
nix.settings.auto-optimise-store = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
environment.etc.nixuser.source = ./nix;
|
||||
}
|
||||
|
|
3
.config/linux/system/module/common/Top.nix
Normal file
3
.config/linux/system/module/common/Top.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{ environment, ... }: {
|
||||
environment.etc.top.source = ./top;
|
||||
}
|
|
@ -1,3 +1,13 @@
|
|||
{ ... }: {
|
||||
{ environment, ... }: {
|
||||
users.mutableUsers = false;
|
||||
environment.etc."user-dirs.dirs".text = ''
|
||||
XDG_DESKTOP_DIR="$HOME/"
|
||||
XDG_DOWNLOAD_DIR="$HOME/download"
|
||||
XDG_TEMPLATES_DIR="$HOME/document/template"
|
||||
XDG_PUBLICSHARE_DIR="$HOME/"
|
||||
XDG_DOCUMENTS_DIR="$HOME/document"
|
||||
XDG_MUSIC_DIR="$HOME/"
|
||||
XDG_PICTURES_DIR="$HOME/media/picture"
|
||||
XDG_VIDEOS_DIR="$HOME/media/video"
|
||||
'';
|
||||
}
|
||||
|
|
1
.config/nix
Symbolic link
1
.config/nix
Symbolic link
|
@ -0,0 +1 @@
|
|||
/etc/nixuser
|
|
@ -1,15 +0,0 @@
|
|||
# This file is written by xdg-user-dirs-update
|
||||
# If you want to change or add directories, just edit the line you're
|
||||
# interested in. All local changes will be retained on the next run.
|
||||
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
|
||||
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
|
||||
# absolute path. No other format is supported.
|
||||
#
|
||||
XDG_DESKTOP_DIR="$HOME/"
|
||||
XDG_DOWNLOAD_DIR="$HOME/download"
|
||||
XDG_TEMPLATES_DIR="$HOME/document/template"
|
||||
XDG_PUBLICSHARE_DIR="$HOME/"
|
||||
XDG_DOCUMENTS_DIR="$HOME/document"
|
||||
XDG_MUSIC_DIR="$HOME/"
|
||||
XDG_PICTURES_DIR="$HOME/media/picture"
|
||||
XDG_VIDEOS_DIR="$HOME/media/video"
|
1
.config/user-dirs.dirs
Symbolic link
1
.config/user-dirs.dirs
Symbolic link
|
@ -0,0 +1 @@
|
|||
/etc/user-dirs.dirs
|
23
.gitignore
vendored
23
.gitignore
vendored
|
@ -67,24 +67,15 @@
|
|||
!/.config/linux/**
|
||||
|
||||
# Nix.
|
||||
!/.config/nix/
|
||||
!/.config/nix/**
|
||||
!/.config/nix
|
||||
|
||||
# Gtk-3.0.
|
||||
!/.config/gtk-3.0/
|
||||
!/.config/gtk-3.0/**
|
||||
# Gtk.
|
||||
!/.config/gtk-3.0
|
||||
!/.config/gtk-4.0
|
||||
|
||||
# Gtk-4.0.
|
||||
!/.config/gtk-4.0/
|
||||
!/.config/gtk-4.0/**
|
||||
|
||||
# Btop settings.
|
||||
!/.config/btop/
|
||||
!/.config/btop/btop.conf
|
||||
|
||||
# Htop settings.
|
||||
!/.config/htop/
|
||||
!/.config/htop/htoprc
|
||||
# Top settings.
|
||||
!/.config/btop
|
||||
!/.config/htop
|
||||
|
||||
# User dirs.
|
||||
!/.config/user-dirs.dirs
|
||||
|
|
Reference in a new issue