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,7 +42,27 @@
./zsh ./zsh
]; ];
home.persistence."/persist/${config.home.homeDirectory}" = { home.persistence = {
"/data/${config.home.homeDirectory}" = {
directories = [
"Audio"
"Calendars"
"Contacts"
"Documents"
"Downloads"
"Images"
"Maildir"
"Monero"
"Nextcloud"
"code"
"configs"
"misc"
"workspace"
];
allowOther = true;
};
"/persist/${config.home.homeDirectory}" = {
directories = [ directories = [
".Slic3r" ".Slic3r"
".abook" ".abook"
@ -75,19 +95,6 @@
".vdirsyncer" ".vdirsyncer"
".walletwasabi" ".walletwasabi"
".wine" ".wine"
"Audio"
"Calendars"
"Contacts"
"Documents"
"Downloads"
"Images"
"Maildir"
"Monero"
"Nextcloud"
"code"
"configs"
"misc"
"workspace"
]; ];
files = [ files = [
".gnupg/pubring.kbx" ".gnupg/pubring.kbx"
@ -99,6 +106,7 @@
]; ];
allowOther = true; allowOther = true;
}; };
};
home.sessionVariables = { home.sessionVariables = {
EDITOR = "${pkgs.neovim}/bin/nvim"; EDITOR = "${pkgs.neovim}/bin/nvim";

View File

@ -230,12 +230,12 @@
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 = {
"/persist" = {
directories = [ directories = [
"/etc/NetworkManager/system-connections" "/etc/NetworkManager/system-connections"
"/etc/nixos" "/etc/nixos"
@ -244,7 +244,6 @@
"/var/lib/docker" "/var/lib/docker"
"/var/lib/libvirt" "/var/lib/libvirt"
"/var/lib/systemd/coredump" "/var/lib/systemd/coredump"
"/var/log"
]; ];
files = [ files = [
"/etc/machine-id" "/etc/machine-id"
@ -255,6 +254,9 @@
]; ];
}; };
"/logs" = { directories = [ "/var/log" ]; };
};
# Open ports in the firewall. # Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedTCPPorts = [ ... ];
# #