refactor2
This commit is contained in:
parent
7fa104b722
commit
f0a79a07f1
3 changed files with 25 additions and 19 deletions
|
|
@ -2,6 +2,7 @@
|
|||
imports = [
|
||||
./nfs.nix
|
||||
./desktop.nix
|
||||
./steam.nix
|
||||
./gaming.nix
|
||||
./stylix.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, ...}: {
|
||||
{ pkgs, config, lib, ...}: {
|
||||
|
||||
options.gaming.enable = lib.mkEnableOption "Enable steam and related software";
|
||||
|
||||
|
|
@ -3,7 +3,9 @@
|
|||
options.nfs.client.enable = lib.mkEnableOption "Enable Nas (via NFS) as a client";
|
||||
options.nfs.server.enable = lib.mkEnableOption "Enable Nas (via NFS) as the server";
|
||||
|
||||
config = lib.mkIf config.nfs.client.enable {
|
||||
config = lib.mkMerge [
|
||||
(
|
||||
lib.mkIf config.nfs.client.enable {
|
||||
fileSystems."/mnt/nas" = {
|
||||
device = "nixserver:/share";
|
||||
fsType = "nfs";
|
||||
|
|
@ -15,9 +17,12 @@
|
|||
"_netdev"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.nfs.server.enable {
|
||||
|
||||
};
|
||||
}
|
||||
)
|
||||
(
|
||||
lib.mkIf config.nfs.server.enable {
|
||||
|
||||
}
|
||||
)
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue