From 6eb6ac12785b2e9cdf3e57349b348f85d9da8b89 Mon Sep 17 00:00:00 2001 From: Leyla Becker Date: Thu, 3 Oct 2024 17:20:16 +0200 Subject: [PATCH] removed non home manager isFullUser and isThinUser for leyla --- hosts/defiant/configuration.nix | 1 - hosts/horizon/configuration.nix | 1 - hosts/twilight/configuration.nix | 1 - users/leyla/default.nix | 14 +---------- users/leyla/packages.nix | 41 ++------------------------------ 5 files changed, 3 insertions(+), 55 deletions(-) diff --git a/hosts/defiant/configuration.nix b/hosts/defiant/configuration.nix index 59744c8..09c51a4 100644 --- a/hosts/defiant/configuration.nix +++ b/hosts/defiant/configuration.nix @@ -17,7 +17,6 @@ home-manager.users.leyla.config = { isThinUser = true; }; - users.leyla.isThinUser = true; boot.loader.grub = { enable = true; diff --git a/hosts/horizon/configuration.nix b/hosts/horizon/configuration.nix index 714429d..7086276 100644 --- a/hosts/horizon/configuration.nix +++ b/hosts/horizon/configuration.nix @@ -19,7 +19,6 @@ }; users = { - leyla.isFullUser = true; ester.isFullUser = true; eve.isFullUser = true; }; diff --git a/hosts/twilight/configuration.nix b/hosts/twilight/configuration.nix index 972fd72..39bf38b 100644 --- a/hosts/twilight/configuration.nix +++ b/hosts/twilight/configuration.nix @@ -20,7 +20,6 @@ }; users = { - leyla.isFullUser = true; ester.isFullUser = true; eve.isFullUser = true; }; diff --git a/users/leyla/default.nix b/users/leyla/default.nix index 102e029..10e9ae9 100644 --- a/users/leyla/default.nix +++ b/users/leyla/default.nix @@ -4,18 +4,8 @@ inputs, ... }: let - cfg = config.users.leyla; + cfg = config.home-manager.users.leyla; in { - # imports = [ - # ./packages.nix - # ]; - - options.users.leyla = { - isFullUser = lib.mkEnableOption "create usable leyla user"; - isThinUser = lib.mkEnableOption "create usable user but witohut user applications"; - hasGPU = lib.mkEnableOption "installs gpu intensive programs"; - }; - config = { nixpkgs.config.allowUnfree = true; @@ -67,7 +57,5 @@ in { } ]; }; - - # home-manager.users.leyla = lib.mkIf (cfg.isFullUser || cfg.isThinUser) (import ./home.nix); }; } diff --git a/users/leyla/packages.nix b/users/leyla/packages.nix index 294cad5..6b64616 100644 --- a/users/leyla/packages.nix +++ b/users/leyla/packages.nix @@ -75,7 +75,8 @@ # steam = lib.mkIf config.isFullUser { # enable = true; # remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play - # dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server + # dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated ServerServer + # localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers # }; # noisetorch.enable = config.isFullUser; @@ -126,44 +127,6 @@ (lib.mkIf config.hasGPU davinci-resolve) # development tools - # (vscode-with-extensions.override { - # vscode = vscodium; - # vscodeExtensions = with open-vsx; - # [ - # # vs code feel extensions - # ms-vscode.atom-keybindings - # akamud.vscode-theme-onedark - # streetsidesoftware.code-spell-checker - # streetsidesoftware.code-spell-checker-german - # streetsidesoftware.code-spell-checker-italian - # jeanp413.open-remote-ssh - - # # nix extensions - # pinage404.nix-extension-pack - # jnoortheen.nix-ide - - # # html extensions - # formulahendry.auto-rename-tag - # ms-vscode.live-server - - # # js extensions - # dsznajder.es7-react-js-snippets - # dbaeumer.vscode-eslint - # standard.vscode-standard - # firsttris.vscode-jest-runner - # stylelint.vscode-stylelint - # tauri-apps.tauri-vscode - - # # misc extensions - # bungcip.better-toml - - # open-vsx."10nates".ollama-autocoder - # ] - # ++ (with vscode-marketplace; [ - # # js extensions - # karyfoundation.nearley - # ]); - # }) androidStudioPackages.canary jetbrains.idea-community dbeaver-bin