Move the NixOS config into the user's directory
This commit is contained in:
parent
9946d500f7
commit
57201099fb
6 changed files with 22 additions and 25 deletions
|
@ -1,7 +1,7 @@
|
|||
{ ... }:
|
||||
{ config, ... }:
|
||||
{
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
flake = "/etc/nixos";
|
||||
flake = "${config.home.homeDirectory}/Projects/nixos-config";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -97,23 +97,23 @@
|
|||
file = {
|
||||
".local/share/ranger/bookmarks".text = ''
|
||||
# Local files
|
||||
h:/home/${config.home.username}/
|
||||
k:/home/${config.home.username}/Keepers
|
||||
j:/home/${config.home.username}/Downloads
|
||||
v:/home/${config.home.username}/Videos
|
||||
c:/home/${config.home.username}/.config
|
||||
l:/home/${config.home.username}/.local
|
||||
h:${config.home.homeDirectory}/
|
||||
k:${config.home.homeDirectory}/Keepers
|
||||
j:${config.home.homeDirectory}/Downloads
|
||||
v:${config.home.homeDirectory}/Videos
|
||||
n:${config.home.homeDirectory}/Projects/nixos-config
|
||||
c:${config.home.homeDirectory}/.config
|
||||
l:${config.home.homeDirectory}/.local
|
||||
d:/mnt
|
||||
p:/persist
|
||||
n:/etc/nixos
|
||||
|
||||
# Remote files
|
||||
N:/home/${config.home.username}/Network
|
||||
H:/home/${config.home.username}/Network/Midas/
|
||||
K:/home/${config.home.username}/Network/Midas/Files
|
||||
M:/home/${config.home.username}/Network/Midas/Music
|
||||
V:/home/${config.home.username}/Network/Midas/Videos
|
||||
P:/home/${config.home.username}/Network/Midas/Photos
|
||||
N:${config.home.homeDirectory}/Network
|
||||
H:${config.home.homeDirectory}/Network/Midas/
|
||||
K:${config.home.homeDirectory}/Network/Midas/Files
|
||||
M:${config.home.homeDirectory}/Network/Midas/Music
|
||||
V:${config.home.homeDirectory}/Network/Midas/Videos
|
||||
P:${config.home.homeDirectory}/Network/Midas/Photos
|
||||
'';
|
||||
};
|
||||
packages = with pkgsStable; [
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
home.shellAliases = {
|
||||
# NixOS
|
||||
nhs = "nh os switch /etc/nixos";
|
||||
nhs = "nh os switch";
|
||||
nixclean = "nix store gc; nix store optimise";
|
||||
nixpurge = "doas nix-collect-garbage --delete-old";
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
users.${config.sysusers.main} = {
|
||||
directories = [
|
||||
"Keepers"
|
||||
"Projects"
|
||||
"Documents"
|
||||
"Pictures"
|
||||
"Videos"
|
||||
|
@ -22,14 +23,14 @@
|
|||
".config/vesktop"
|
||||
".config/zsh"
|
||||
|
||||
".local/share/mpd"
|
||||
".local/share/nvim/undo"
|
||||
".local/share/PrismLauncher"
|
||||
".local/share/Steam"
|
||||
".local/share/TelegramDesktop"
|
||||
".local/share/mpd"
|
||||
".local/share/nvim/undo"
|
||||
|
||||
".local/state/wireplumber"
|
||||
".local/state/lazygit"
|
||||
".local/state/wireplumber"
|
||||
|
||||
".cache/nix-index"
|
||||
|
||||
|
|
|
@ -3,13 +3,9 @@
|
|||
environment.persistence."/persist" = {
|
||||
hideMounts = true;
|
||||
directories = [
|
||||
"/etc/nixos"
|
||||
"/storage"
|
||||
"/var/lib/nixos"
|
||||
];
|
||||
files = [
|
||||
"/etc/machine-id"
|
||||
"/root/.gitconfig"
|
||||
];
|
||||
files = [ "/etc/machine-id" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue