setup vanilla nixos

This commit is contained in:
Rob committed 2024-01-16 19:34:43 +00:00
commit e65d1b28ac
7 files changed
+276

No files matched your search

+1
View File
@@ -0,0 +1 @@
/nix/store/f63q5ak4m5rxgway2sz1n7f1kgbcpgq7-nixos-system-bfds-23.11.2217.d02d818f22c7
+14
View File
@@ -0,0 +1,14 @@
{ pkgs, ... }:
{
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
wget
nano
git
mc
ncdu
parted
gpart
];
}
+43
View File
@@ -0,0 +1,43 @@
{ config, ... }:
{
systemd.services.zfs-mount.enable = false;
networking.hostId = "07019099";
boot.supportedFilesystems = [ "zfs" ];
boot.zfs.devNodes = "/dev/disk/by-id/ata-WDC_WD30EZRZ-00Z5HB0_WD-WCC4N7LL2J1S-part1"; #oder mit -part1 am ende
fileSystems."/bfds-nix" =
{ device = "bfds-nix";
fsType = "zfs";
};
fileSystems."/bfds-nix/music" =
{ device = "bfds-nix/music";
fsType = "zfs";
};
fileSystems."/bfds-nix/rob" =
{ device = "bfds-nix/rob";
fsType = "zfs";
};
fileSystems."/bfds-nix/hoerbuecher" =
{ device = "bfds-nix/hoerbuecher";
fsType = "zfs";
};
fileSystems."/bfds-nix/movies" =
{ device = "bfds-nix/movies";
fsType = "zfs";
};
fileSystems."/bfds-nix/peggy" =
{ device = "bfds-nix/peggy";
fsType = "zfs";
};
fileSystems."/bfds-nix/ebooks" =
{ device = "bfds-nix/ebooks";
fsType = "zfs";
};
}
+43
View File
@@ -0,0 +1,43 @@
{ config, ... }:
{
systemd.services.zfs-mount.enable = false;
networking.hostId = "07019099";
boot.supportedFilesystems = [ "zfs" ];
boot.zfs.devNodes = "/dev/disk/by-id/ata-WDC_WD30EZRZ-00Z5HB0_WD-WCC4N7LL2J1S-part1"; #oder mit -part1 am ende
#fileSystems."/bfds-nix" =
# { device = "bfds-nix";
# fsType = "zfs";
# };
fileSystems."/bfds-nix/music" =
{ device = "bfds-nix/music";
fsType = "zfs";
};
fileSystems."/bfds-nix/rob" =
{ device = "bfds-nix/rob";
fsType = "zfs";
};
fileSystems."/bfds-nix/hoerbuecher" =
{ device = "bfds-nix/hoerbuecher";
fsType = "zfs";
};
fileSystems."/bfds-nix/movies" =
{ device = "bfds-nix/movies";
fsType = "zfs";
};
fileSystems."/bfds-nix/peggy" =
{ device = "bfds-nix/peggy";
fsType = "zfs";
};
fileSystems."/bfds-nix/ebooks" =
{ device = "bfds-nix/ebooks";
fsType = "zfs";
};
}
+17
View File
@@ -0,0 +1,17 @@
{ config, ... }:
let
keys = [
"ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHSacquswkrT7FzoWEHnc7+cyMbHJ9mMHXozMD17q5N6RplJ1jm1xsiKOXqgO+klEwQMdE3Zr41yfqmdr+9+nd4="
];
in
{
users.users = {
sshuser = {
isNormalUser = true;
home = "/home/sshuser";
description = "Fuer den Zugriff per SSH";
extraGroups = [ "wheel" "users" "dialout" "network" "system-network" "input" "rsync" ];
openssh.authorizedKeys.keys = keys;
};
};
}