Rename hummelberg-new to hummelberg
This commit is contained in:
parent
51f5e7eab9
commit
19bdd28b42
9 changed files with 133 additions and 133 deletions
|
@ -1,59 +1,25 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
networkShares = let
|
||||
hsr_options = [
|
||||
"defaults"
|
||||
"noauto"
|
||||
#"iocharset=utf8"
|
||||
"soft"
|
||||
"user=fhauser"
|
||||
"domain=hsr.ch"
|
||||
"uid=1000"
|
||||
"gid=1000"
|
||||
];
|
||||
hsr_share = share_name:
|
||||
{ domain ? "hsr.ch/root", path ? share_name, extra_options ? [ ] }:
|
||||
lib.nameValuePair "/mnt/hsr/${share_name}" {
|
||||
device = "//${domain}/${path}";
|
||||
fsType = "cifs";
|
||||
options = hsr_options ++ extra_options;
|
||||
noCheck = true;
|
||||
};
|
||||
in lib.mapAttrs' hsr_share {
|
||||
"skripte".path = "alg/skripte";
|
||||
"scratch".path = "alg/scratch";
|
||||
"fhauser".domain = "c101.hsr.ch";
|
||||
#"fabian.hauser".domain = "svm-c113.ost.ch"; # User!
|
||||
"afe" = { };
|
||||
"auw" = { };
|
||||
"ebooks" = {
|
||||
path = "alg/ebooks";
|
||||
extra_options = [ "ro" ];
|
||||
};
|
||||
};
|
||||
|
||||
in {
|
||||
{ config, pkgs, lib, ... }: {
|
||||
boot.initrd.luks.devices = {
|
||||
"root".device = "/dev/disk/by-uuid/28d2914f-c053-40a8-ad90-f2743190c772";
|
||||
"swap".device = "/dev/disk/by-uuid/ed89158d-4460-4012-86d7-f8761127371c";
|
||||
"root".device = "/dev/disk/by-uuid/fae1b81e-894c-47b4-92e5-0a817fd6f66f";
|
||||
"swap".device = "/dev/disk/by-uuid/dc1fe9ff-7eb7-40c3-8fbd-d99398e5e5d6";
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/6396b6eb-a7e6-430c-8c97-970404f88b35";
|
||||
device = "/dev/mapper/root";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=nixos" ];
|
||||
};
|
||||
"/home" = {
|
||||
device = "/dev/disk/by-uuid/6396b6eb-a7e6-430c-8c97-970404f88b35";
|
||||
device = "/dev/mapper/root";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=home" ];
|
||||
};
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/E86E-3C6C";
|
||||
device = "/dev/disk/by-uuid/1FB9-3DB0";
|
||||
fsType = "vfat";
|
||||
};
|
||||
} // networkShares;
|
||||
};
|
||||
|
||||
swapDevices = [{ device = "/dev/mapper/swap"; }];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue