From 1ad690b5a7f74a1ffbfcde12083e7b0d9a8688c4 Mon Sep 17 00:00:00 2001 From: joy Date: Fri, 18 Oct 2024 10:21:53 +0200 Subject: [PATCH] added the code module and like right optopn idrn --- flake.lock | 6 +++--- hosts/laptop/default.nix | 2 +- modules/programs/home/code/default.nix | 2 +- modules/programs/home/default.nix | 1 + modules/programs/home/zsh/default.nix | 2 +- modules/system/user/default.nix | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/flake.lock b/flake.lock index f48f92e..d7c2eb7 100644 --- a/flake.lock +++ b/flake.lock @@ -96,11 +96,11 @@ }, "locked": { "dir": "pkgs/firefox-addons", - "lastModified": 1729198744, - "narHash": "sha256-sJXRhptdX5y77360VgcW2fYlZoazg/lOh4upx8nUiVo=", + "lastModified": 1729224206, + "narHash": "sha256-NL0uWIk+dQ9fByVZvErTjEK0nPBoMmoWUg9+tKmTVr8=", "owner": "rycee", "repo": "nur-expressions", - "rev": "fb7273920513b4c1ef70a79a83f87292b54ae91a", + "rev": "88d8432e88da24b9bc66807efaee04158c266573", "type": "gitlab" }, "original": { diff --git a/hosts/laptop/default.nix b/hosts/laptop/default.nix index a501d01..c35693e 100644 --- a/hosts/laptop/default.nix +++ b/hosts/laptop/default.nix @@ -4,7 +4,7 @@ hypridle.enable = true; led.enable = true; gnome.enable = true; - code.enable = true; + home-manager.users.joy.code.enable = true; imports = [ ./hardware.nix diff --git a/modules/programs/home/code/default.nix b/modules/programs/home/code/default.nix index d81a048..f8e16f3 100644 --- a/modules/programs/home/code/default.nix +++ b/modules/programs/home/code/default.nix @@ -8,7 +8,7 @@ code.enable = lib.mkEnableOption ""; }; config = lib.mkIf config.code.enable { - home-manager.users.joy.programs.vscode = { + programs.vscode = { enable = true; package = pkgs.vscodium; extensions = with pkgs.vscode-extensions; [ diff --git a/modules/programs/home/default.nix b/modules/programs/home/default.nix index f0dd3c4..c336095 100644 --- a/modules/programs/home/default.nix +++ b/modules/programs/home/default.nix @@ -14,6 +14,7 @@ ./tmux ./mail ./yazi + ./code ./misc ]; } diff --git a/modules/programs/home/zsh/default.nix b/modules/programs/home/zsh/default.nix index 924ee2b..f6f227c 100644 --- a/modules/programs/home/zsh/default.nix +++ b/modules/programs/home/zsh/default.nix @@ -16,7 +16,7 @@ ip = "sh ~/nix/modules/programs/home/zsh/scripts/ip.sh"; rb = "sh ~/nix/modules/programs/home/zsh/scripts/rebuild.sh"; fr = "doas systemctl reboot --firmware"; - up = "nix flake update ~/nix"; + up = "nix flake update /home/joy/nix"; del = "doas nix-collect-garbage -d"; dn = "dotnet new console"; dr = "dotnet run"; diff --git a/modules/system/user/default.nix b/modules/system/user/default.nix index 77b429e..e4cba01 100644 --- a/modules/system/user/default.nix +++ b/modules/system/user/default.nix @@ -2,6 +2,6 @@ users.users.joy = { isNormalUser = true; description = "joy"; - extraGroups = ["wheel"]; + extraGroups = ["wheel" "networkmanager"]; }; }