mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
feat: added user2 and refactored to accommodate
This commit is contained in:
parent
c169f84dcc
commit
9cdcf4fec4
97 changed files with 1473 additions and 1052 deletions
53
systems/fallaryn/config/filesystem.nix
Executable file
53
systems/fallaryn/config/filesystem.nix
Executable file
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
config,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.people) user0;
|
||||
inherit (flake.config.system.device) fallaryn;
|
||||
in
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
fileSystems =
|
||||
let
|
||||
storageDrives = [
|
||||
"storage0"
|
||||
"storage1"
|
||||
];
|
||||
|
||||
storageMounts = storage: {
|
||||
name = "${fallaryn.${storage}.mount}";
|
||||
value = {
|
||||
device = fallaryn.${storage}.device;
|
||||
fsType = "ext4";
|
||||
options = fallaryn.${storage}.options;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/d02cb367-26e0-4708-8840-75dcc4362ff4";
|
||||
fsType = "ext4";
|
||||
};
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/22BD-5A25";
|
||||
fsType = "vfat";
|
||||
options = fallaryn.boot.options;
|
||||
};
|
||||
}
|
||||
// (builtins.listToAttrs (map storageMounts storageDrives));
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-uuid/cc7ab213-26c9-4567-91ca-9dba6e98c9d1"; }
|
||||
];
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"Z ${config.home-manager.users.${user0}.home.homeDirectory} 0755 ${user0} users -"
|
||||
"Z ${fallaryn.storage0.mount} 0755 ${user0} users -"
|
||||
"Z ${fallaryn.storage1.mount} 0755 ${user0} users -"
|
||||
];
|
||||
|
||||
services.udisks2.enable = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue