many changes

feat/kile-v2
Ricard Illa 2022-05-25 09:58:20 +02:00
parent 71f0315804
commit 0984026c06
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
5 changed files with 110 additions and 79 deletions

View File

@ -23,6 +23,20 @@ in {
neededForBoot = true; neededForBoot = true;
}; };
"/logs" = {
device = "/dev/mapper/root";
fsType = "btrfs";
options = [ "subvol=logs" "compress=zstd" ];
neededForBoot = true;
};
"/data" = {
device = "/dev/mapper/root";
fsType = "btrfs";
options = [ "subvol=data" "compress=zstd" ];
neededForBoot = true;
};
"/nix" = { "/nix" = {
device = "/dev/mapper/root"; device = "/dev/mapper/root";
fsType = "btrfs"; fsType = "btrfs";

View File

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1653153149, "lastModified": 1653340164,
"narHash": "sha256-8B/tWWZziFq4DqnAm9uO7M4Z4PNfllYg5+teX1e5yDQ=", "narHash": "sha256-t6BPApyasx6FOv2cEVyFBXvkEDrknyUe7bngMbNSBkA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "94780dd888881bf35165dfdd334a57ef6b14ead8", "rev": "e66f0ff69a6c0698b35034b842c4b68814440778",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -1,7 +1,14 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
home.packages = with pkgs; [ black jq sqlfluff nixfmt shfmt hlint ]; home.packages = with pkgs; [
black
jq
# sqlfluff
nixfmt
shfmt
hlint
];
programs.neovim = { programs.neovim = {
enable = true; enable = true;
viAlias = true; viAlias = true;

View File

@ -42,62 +42,70 @@
./zsh ./zsh
]; ];
home.persistence."/persist/${config.home.homeDirectory}" = { home.persistence = {
directories = [ "/data/${config.home.homeDirectory}" = {
".Slic3r" directories = [
".abook" "Audio"
".bitmonero" "Calendars"
".cache" "Contacts"
".config/Element" "Documents"
".config/Nextcloud" "Downloads"
".config/Signal" "Images"
".config/SuperCollider" "Maildir"
".config/ardour6" "Monero"
".config/chromium" "Nextcloud"
".config/kdeconnect" "code"
".config/kicad" "configs"
".config/whatsapp-for-linux" "misc"
".gnupg/private-keys-v1.d" "workspace"
".hydrogen" ];
".librewolf" allowOther = true;
".local/share/Bisq" };
".local/share/SuperCollider"
".local/share/TelegramDesktop" "/persist/${config.home.homeDirectory}" = {
".local/share/dino" directories = [
".local/share/keyrings" ".Slic3r"
".local/share/mpd" ".abook"
".local/share/webkitgtk" ".bitmonero"
".local/state/wireplumber" ".cache"
".mozilla" ".config/Element"
".newsboat" ".config/Nextcloud"
".password-store" ".config/Signal"
".vagrant.d" ".config/SuperCollider"
".vdirsyncer" ".config/ardour6"
".walletwasabi" ".config/chromium"
".wine" ".config/kdeconnect"
"Audio" ".config/kicad"
"Calendars" ".config/whatsapp-for-linux"
"Contacts" ".gnupg/private-keys-v1.d"
"Documents" ".hydrogen"
"Downloads" ".librewolf"
"Images" ".local/share/Bisq"
"Maildir" ".local/share/SuperCollider"
"Monero" ".local/share/TelegramDesktop"
"Nextcloud" ".local/share/dino"
"code" ".local/share/keyrings"
"configs" ".local/share/mpd"
"misc" ".local/share/webkitgtk"
"workspace" ".local/state/wireplumber"
]; ".mozilla"
files = [ ".newsboat"
".gnupg/pubring.kbx" ".password-store"
".gnupg/trustdb.gpg" ".vagrant.d"
".mailsynclastrun" ".vdirsyncer"
".ssh/known_hosts" ".walletwasabi"
".zsh_history" ".wine"
".lmmsrc.xml" ];
]; files = [
allowOther = true; ".gnupg/pubring.kbx"
".gnupg/trustdb.gpg"
".mailsynclastrun"
".ssh/known_hosts"
".zsh_history"
".lmmsrc.xml"
];
allowOther = true;
};
}; };
home.sessionVariables = { home.sessionVariables = {

View File

@ -230,29 +230,31 @@
fsType = "tmpfs"; fsType = "tmpfs";
options = [ "defaults" "size=2G" "mode=755" ]; options = [ "defaults" "size=2G" "mode=755" ];
}; };
}; };
swapDevices = [{ device = "/swap/swapfile"; }]; swapDevices = [{ device = "/swap/swapfile"; }];
environment.persistence."/persist" = { environment.persistence = {
directories = [ "/persist" = {
"/etc/NetworkManager/system-connections" directories = [
"/etc/nixos" "/etc/NetworkManager/system-connections"
"/etc/wireguard" "/etc/nixos"
"/var/lib/bluetooth" "/etc/wireguard"
"/var/lib/docker" "/var/lib/bluetooth"
"/var/lib/libvirt" "/var/lib/docker"
"/var/lib/systemd/coredump" "/var/lib/libvirt"
"/var/log" "/var/lib/systemd/coredump"
]; ];
files = [ files = [
"/etc/machine-id" "/etc/machine-id"
"/etc/ssh/ssh_host_ed25519_key" "/etc/ssh/ssh_host_ed25519_key"
"/etc/ssh/ssh_host_ed25519_key.pub" "/etc/ssh/ssh_host_ed25519_key.pub"
"/etc/ssh/ssh_host_rsa_key" "/etc/ssh/ssh_host_rsa_key"
"/etc/ssh/ssh_host_rsa_key.pub" "/etc/ssh/ssh_host_rsa_key.pub"
]; ];
};
"/logs" = { directories = [ "/var/log" ]; };
}; };
# Open ports in the firewall. # Open ports in the firewall.