mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
lenny: update filesystems
This commit is contained in:
parent
8f27de07ee
commit
6573495580
1 changed files with 18 additions and 14 deletions
|
@ -1,23 +1,26 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
services = {
|
environment.etc =
|
||||||
openssh.enable = true;
|
{
|
||||||
|
"machine-id".source = "/var/lib/nixos/machine-id";
|
||||||
|
|
||||||
|
"NetworkManager/system-connections".source =
|
||||||
|
"/var/lib/nixos/network-connections";
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules = [ "d /var/lib/nixos/network-connections 0700" ];
|
||||||
|
|
||||||
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
hostKeys = [
|
||||||
|
{ type = "ed25519"; path = "/var/lib/nixos/ssh_host_ed25519_key"; }
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
users.mutableUsers = false;
|
users.mutableUsers = false;
|
||||||
users.users.root.passwordFile = "/nix/persist/shadow_sean";
|
users.users.root.passwordFile = "/nix/persist/shadow_sean";
|
||||||
users.users.sean.passwordFile = "/nix/persist/shadow_sean";
|
users.users.sean.passwordFile = "/nix/persist/shadow_sean";
|
||||||
|
|
||||||
environment.etc =
|
|
||||||
lib.genAttrs
|
|
||||||
[
|
|
||||||
"machine-id"
|
|
||||||
"NetworkManager/system-connections"
|
|
||||||
"ssh/ssh_host_ed25519_key"
|
|
||||||
"ssh/ssh_host_rsa_key"
|
|
||||||
]
|
|
||||||
(name: { source = "/nix/persist/etc/${name}"; });
|
|
||||||
|
|
||||||
sconfig = {
|
sconfig = {
|
||||||
gnome = true;
|
gnome = true;
|
||||||
profile = "desktop";
|
profile = "desktop";
|
||||||
|
@ -44,11 +47,12 @@
|
||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
|
"/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; };
|
||||||
"/" = { device = "lenny/locker/tmproot"; fsType = "zfs"; };
|
"/" = { device = "lenny/locker/tmproot"; fsType = "zfs"; };
|
||||||
"/nix" = { device = "lenny/locker/nix"; fsType = "zfs"; };
|
"/nix" = { device = "lenny/locker/nix"; fsType = "zfs"; };
|
||||||
"/home" = { device = "lenny/locker/home"; fsType = "zfs"; };
|
"/home" = { device = "lenny/locker/home"; fsType = "zfs"; };
|
||||||
"/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; };
|
"/var/lib" = { device = "lenny/locker/lib"; fsType = "zfs"; };
|
||||||
"/var/log" = { device = "/nix/persist/var/log"; noCheck = true; options = [ "bind" ]; };
|
"/var/log" = { device = "lenny/locker/log"; fsType = "zfs"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "21.11";
|
system.stateVersion = "21.11";
|
||||||
|
|
Loading…
Reference in a new issue