feat: update penguin config

This commit is contained in:
Yadunand Prem 2025-07-15 21:26:37 -04:00
parent 3b8824ee13
commit 5f9227c2f8
Signed by: yadunut
SSH Key Fingerprint: SHA256:mOIk45aRevEBf+VbljXnmFlCYEUmp4cFprML5FtFAHo
7 changed files with 134 additions and 22 deletions

View File

@ -1,5 +1,4 @@
{ {
config,
pkgs, pkgs,
... ...
}: { }: {

View File

@ -166,11 +166,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1752467539, "lastModified": 1752603129,
"narHash": "sha256-4kaR+xmng9YPASckfvIgl5flF/1nAZOplM+Wp9I5SMI=", "narHash": "sha256-S+wmHhwNQ5Ru689L2Gu8n1OD6s9eU9n9mD827JNR+kw=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "1e54837569e0b80797c47be4720fab19e0db1616", "rev": "e8c19a3cec2814c754f031ab3ae7316b64da085b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -225,11 +225,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1751984180, "lastModified": 1752480373,
"narHash": "sha256-LwWRsENAZJKUdD3SpLluwDmdXY9F45ZEgCb0X+xgOL0=", "narHash": "sha256-JHQbm+OcGp32wAsXTE/FLYGNpb+4GLi5oTvCxwSoBOA=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9807714d6944a957c2e036f84b0ff8caf9930bc0", "rev": "62e0f05ede1da0d54515d4ea8ce9c733f12d9f08",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -72,6 +72,12 @@
./penguin/configuration.nix ./penguin/configuration.nix
./penguin/hardware-configuration.nix ./penguin/hardware-configuration.nix
yadunut.lib.users yadunut.lib.users
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.yadunut = import ./penguin/home.nix;
}
]; ];
}; };
"falcon-nixos" = nixpkgs.lib.nixosSystem { "falcon-nixos" = nixpkgs.lib.nixosSystem {

View File

@ -1,15 +1,18 @@
{ {
config,
pkgs, pkgs,
... ...
}: { }: {
home.packages = with pkgs; [ home.packages = with pkgs; [
zsh-completions zsh-completions
fd fd
htop htop
ripgrep ripgrep
wget wget
lazygit
]; ];
programs.bat = { programs.bat = {
enable = true; enable = true;
}; };
@ -18,6 +21,18 @@
enableZshIntegration = true; enableZshIntegration = true;
}; };
programs.direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv.enable = true;
config = {
hide_env_diff = true;
};
};
programs.git.extraConfig = {
user.signingkey = "~/.ssh/id_ed25519.pub";
};
programs.zsh = { programs.zsh = {
enable = true; enable = true;
history = { history = {
@ -29,26 +44,28 @@
ignoreAllDups = true; ignoreAllDups = true;
ignoreSpace = true; ignoreSpace = true;
}; };
syntaxHighlighting.enable = true;
# defaultKeymap = "vicmd";
prezto = { prezto = {
enable = true; enable = true;
editor.keymap = "vi"; editor.keymap = "vi";
editor.dotExpansion = true; editor.dotExpansion = true;
pmodules = [ pmodules = [
"environment" # "environment"
"terminal" # "terminal"
"utility" # "utility"
"directory" # "directory"
"editor" # "editor"
"history" # "history"
"syntax-highlighting" # "syntax-highlighting"
"history-substring-search" # "history-substring-search"
"autosuggestions" # "autosuggestions"
"completion" # "completion"
]; ];
}; };
shellAliases = { shellAliases = {
cat = "bat --theme=\"$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo 'gruvbox-dark' || echo 'gruvbox-light')\""; cat = "bat --theme=\"$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo 'gruvbox-dark' || echo 'gruvbox-light')\"";
lg = "lazygit";
diff = "delta"; diff = "delta";
}; };
}; };

View File

@ -12,6 +12,8 @@
}; };
}; };
time.timeZone = "America/Toronto";
networking.networkmanager = { networking.networkmanager = {
enable = true; enable = true;
}; };
@ -20,19 +22,73 @@
enable = true; enable = true;
settings.PasswordAuthentication = false; settings.PasswordAuthentication = false;
}; };
users.users.yadunut = {
shell = pkgs.zsh;
extraGroups = [ "input" ];
};
programs.zsh.enable = true;
nix.settings.experimental-features = [ nix.settings.experimental-features = [
"nix-command" "nix-command"
"flakes" "flakes"
]; ];
services.tailscale.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
jack.enable = true;
};
services.greetd = {
enable = true;
settings = rec {
initial_session={
command = "uwsm start hyprland-uwsm.desktop";
user = "yadunut";
};
default_session = initial_session;
};
};
hardware.bluetooth.enable = true;
services.blueman.enable = true;
security.rtkit.enable = true;
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
programs.hyprland = {
enable = true;
withUWSM = true;
};
programs._1password.enable = true;
programs._1password-gui.enable = true;
networking.hostName = "penguin"; networking.hostName = "penguin";
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
git git
neovim neovim
ghostty kdePackages.dolphin
wofi
dunst
hyprpolkitagent
nixd
brightnessctl
]; ];
virtualisation.podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
fonts.packages = with pkgs;[ nerd-fonts.jetbrains-mono font-awesome
noto-fonts
noto-fonts-emoji
noto-fonts-cjk-sans
noto-fonts-extra
];
system.stateVersion = "25.11";
} }

View File

@ -75,8 +75,8 @@
]; ];
}; };
"@/swap" = { "@/swap" = {
mountpoint = "/.swapvol"; # mountpoint = "/.swapvol";
swap.swapfile.size = "64G"; # swap.swapfile.size = "64G";
mountOptions = [ "noatime" ]; mountOptions = [ "noatime" ];
}; };
}; };

34
penguin/home.nix Normal file
View File

@ -0,0 +1,34 @@
{pkgs, ...}:{
home.username = "yadunut";
home.homeDirectory = "/home/yadunut";
home.packages = with pkgs; [
ripgrep
lazygit
];
services.darkman.enable = true;
imports = [
(import ../modules/zsh.nix)
# (import ../modules/neovim.nix)
(import ../modules/git.nix)
];
programs.ghostty = {
enable = true;
enableZshIntegration = true;
installBatSyntax = true;
};
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;
}