From fa5668fdab887a93629d090dafef1dbadf8e8c0d Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 11 May 2026 21:48:49 -0500 Subject: Dev home manager --- hosts/desktop/configuration.nix | 1 + modules/common.nix | 2 ++ modules/dev.nix | 21 +++++++++++++++++++++ modules/home/dev.nix | 25 +++++++++++++++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 modules/dev.nix create mode 100644 modules/home/dev.nix diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index e276b17..b761f5d 100644 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -18,6 +18,7 @@ in # Include the results of the hardware scan. ./hardware-configuration.nix ../../modules/common.nix + ../../modules/dev.nix ]; boot.loader.grub = { diff --git a/modules/common.nix b/modules/common.nix index 091b8c9..614f973 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -12,6 +12,8 @@ inputs.home-manager.nixosModules.home-manager ]; + nixpkgs.config.allowUnfree = true; + nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; # Experimental features diff --git a/modules/dev.nix b/modules/dev.nix new file mode 100644 index 0000000..6bf1bcc --- /dev/null +++ b/modules/dev.nix @@ -0,0 +1,21 @@ +{ + config, + lib, + pkgs, + inputs, + ... +}: + +{ + imports = [ + inputs.home-manager.nixosModules.home-manager + ]; + + home-manager.users.christian = { + imports = [ + ./home/dev.nix + ]; + }; + + programs.nix-ld.enable = true; +} diff --git a/modules/home/dev.nix b/modules/home/dev.nix new file mode 100644 index 0000000..c801943 --- /dev/null +++ b/modules/home/dev.nix @@ -0,0 +1,25 @@ +{ + config, + pkgs, + inputs, + ... +}: +{ + programs.vscode = { + enable = true; + package = pkgs.vscode-fhs; + + mutableExtensionsDir = true; + + profiles.default.extensions = with pkgs.vscode-extensions; [ + continue.continue + ]; + + profiles.default.userSettings = { + "continue.proxy" = "http://localhost:11434"; + }; + }; + + programs.uv.enable = true; + home.sessionPath = [ "$HOME/.local/bin" ]; +} -- cgit v1.2.3