From 3f88eba1005ac0fbf5d8844fc85e9272ff885e10 Mon Sep 17 00:00:00 2001 From: Yadunand Prem Date: Tue, 19 Aug 2025 00:34:18 +0800 Subject: [PATCH] add penguin's home --- flake.nix | 14 +++--- .../yadunut@yadunut-mbp/default.nix | 15 +----- .../x86_64-linux/yadunut@penguin/default.nix | 48 +++++++++++++++++++ modules/home/zsh/default.nix | 1 + 4 files changed, 59 insertions(+), 19 deletions(-) create mode 100644 homes/x86_64-linux/yadunut@penguin/default.nix diff --git a/flake.nix b/flake.nix index 5ad0476..871a953 100644 --- a/flake.nix +++ b/flake.nix @@ -2,22 +2,24 @@ description = "Yadunand's Configuration"; inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - snowfall-lib = { - url = "github:snowfallorg/lib"; + agenix.url = "github:ryantm/agenix"; + disko = { + url = "github:nix-community/disko"; inputs.nixpkgs.follows = "nixpkgs"; }; - home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; - + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixvim = { url = "github:nix-community/nixvim"; inputs.nixpkgs.follows = "nixpkgs"; }; - + snowfall-lib = { + url = "github:snowfallorg/lib"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = diff --git a/homes/aarch64-darwin/yadunut@yadunut-mbp/default.nix b/homes/aarch64-darwin/yadunut@yadunut-mbp/default.nix index 7abb407..f76b0e3 100644 --- a/homes/aarch64-darwin/yadunut@yadunut-mbp/default.nix +++ b/homes/aarch64-darwin/yadunut@yadunut-mbp/default.nix @@ -5,15 +5,6 @@ ... }: { - # This value determines the Home Manager release that your configuration is - # compatible with. This helps avoid breakage when a new Home Manager release - # introduces backwards incompatible changes. - # - # You should not change this value, even if you update Home Manager. If you do - # want to update the value, then make sure to first check the Home Manager - # release notes. - home.stateVersion = "23.11"; # Please read the comment before changing. - home.packages = [ # pkgs.dive pkgs.entr @@ -21,7 +12,6 @@ pkgs.just pkgs.rsync pkgs.claude-code - pkgs.devenv pkgs.dive ]; @@ -44,9 +34,6 @@ signingKey = "~/.ssh/yadunut_ed25519.pub"; }; - # Let Home Manager install and manage itself. - programs.home-manager.enable = true; - targets.darwin = { defaults."com.apple.dock".autohide = true; defaults."com.apple.finder".AppleShowAllFiles = true; @@ -54,4 +41,6 @@ defaults.NSGlobalDomain.KeyRepeat = 2; defaults.NSGlobalDomain.ApplePressAndHoldEnabled = false; }; + home.stateVersion = "23.11"; # Please read the comment before changing. + programs.home-manager.enable = true; } diff --git a/homes/x86_64-linux/yadunut@penguin/default.nix b/homes/x86_64-linux/yadunut@penguin/default.nix new file mode 100644 index 0000000..ef38a92 --- /dev/null +++ b/homes/x86_64-linux/yadunut@penguin/default.nix @@ -0,0 +1,48 @@ +{ + lib, + pkgs, + config, + ... +}: +{ + home.packages = with pkgs; [ + seahorse + wl-clipboard + ]; + git = { + enable = true; + signingKey = "~/.ssh/id_ed25519.pub"; + }; + zsh.enable = true; + neovim.enable = true; + + services = { + darkman.enable = true; + hyprpolkitagent.enable = true; + cliphist.enable = true; + + ollama = { + enable = true; + host = "0.0.0.0"; + port = 11434; + }; + }; + + programs.git.extraConfig.credential.helper = lib.mkForce [ + "${pkgs.git.override { withLibsecret = true; }}/bin/git-credential-libsecret" + "${pkgs.git-credential-oauth}/bin/git-credential-oauth" + ]; + + programs = { + waybar = { + enable = true; + systemd.enable = true; + }; + gh.enable = true; + zed-editor.enable = true; + firefox.enable = true; + }; + + home.stateVersion = "25.11"; + programs.home-manager.enable = true; +} diff --git a/modules/home/zsh/default.nix b/modules/home/zsh/default.nix index d230dfe..c7f2fc6 100644 --- a/modules/home/zsh/default.nix +++ b/modules/home/zsh/default.nix @@ -23,6 +23,7 @@ in ripgrep wget delta + devenv ]; programs.bat = {