Skip to content

Commit

Permalink
feat(gaming): add flag to manage additional disk for gaming staff
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Nov 5, 2023
1 parent 84d7c26 commit 849b034
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 17 deletions.
30 changes: 15 additions & 15 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions hosts/pc/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
};
in {
desktop.qtile = enableWithDevMode;
desktop.gaming.enable = true;
editors.neovim = enableWithDevMode;
dev = {
goland.enable = true;
Expand Down
7 changes: 5 additions & 2 deletions modules/desktop/gaming/gaming.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, home-manager, lib, ... }:
{ config, pkgs, home-manager, lib, unstable, ... }:
with lib;
let
cfg = config.modules.desktop.gaming;
Expand All @@ -9,6 +9,9 @@ in
enable = mkEnableOption ''
Enable games tools
'';
enableAdditionalDisk = mkEnableOption ''
Add special disk to configuration
'';
};
};

Expand Down Expand Up @@ -36,7 +39,7 @@ in
0.0.0.0 remote-config-proxy-prd.uca.cloud.unity3d.com
'';

fileSystems = {
fileSystems = mkIf (cfg.enableAdditionalDisk) {
"/mnt/gaming" = {
device = "/dev/disk/by-label/GAMING";
fsType = "ext4";
Expand Down

0 comments on commit 849b034

Please sign in to comment.