vno1-op5p: moving to btrfs

main
Motiejus Jakštys 2024-04-04 10:59:35 +03:00
parent bb335c8081
commit dd889cdec5
2 changed files with 19 additions and 18 deletions

View File

@ -167,14 +167,14 @@
./hosts/vno1-op5p/configuration.nix
home-manager.nixosModules.home-manager
agenix.nixosModules.default
{
age.secrets = {
motiejus-passwd-hash.file = ./secrets/motiejus_passwd_hash.age;
root-passwd-hash.file = ./secrets/root_passwd_hash.age;
sasl-passwd.file = ./secrets/postfix_sasl_passwd.age;
};
}
#agenix.nixosModules.default
#{
# age.secrets = {
# motiejus-passwd-hash.file = ./secrets/motiejus_passwd_hash.age;
# root-passwd-hash.file = ./secrets/root_passwd_hash.age;
# sasl-passwd.file = ./secrets/postfix_sasl_passwd.age;
# };
#}
];
specialArgs = {inherit myData;} // inputs;

View File

@ -1,5 +1,5 @@
{
config,
#config,
myData,
...
}: let
@ -11,7 +11,6 @@ in {
];
boot = {
supportedFilesystems = ["bcachefs"];
initrd = {
kernelModules = ["usb_storage"];
luks.devices = {
@ -36,8 +35,8 @@ in {
fileSystems = {
"/" = {
device = "/dev/mapper/luksroot";
fsType = "bcachefs";
options = ["noatime" "fix_errors"];
fsType = "btrfs";
options = ["noatime" "compress=zstd"];
};
"/boot" = {
device = "${nvme}-part1";
@ -52,8 +51,10 @@ in {
base.users = {
enable = true;
root.hashedPasswordFile = config.age.secrets.root-passwd-hash.path;
user.hashedPasswordFile = config.age.secrets.motiejus-passwd-hash.path;
#root.hashedPasswordFile = config.age.secrets.root-passwd-hash.path;
#user.hashedPasswordFile = config.age.secrets.motiejus-passwd-hash.path;
root.initialPassword = "live";
user.hashedPasswordFile = "live";
};
services = {
@ -61,10 +62,10 @@ in {
node_exporter.enable = true;
sshguard.enable = true;
postfix = {
enable = true;
saslPasswdPath = config.age.secrets.sasl-passwd.path;
};
#postfix = {
# enable = true;
# saslPasswdPath = config.age.secrets.sasl-passwd.path;
#};
deployerbot = {
follower = {