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,
...
}: {

View File

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

View File

@ -72,6 +72,12 @@
./penguin/configuration.nix
./penguin/hardware-configuration.nix
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 {

View File

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

View File

@ -12,6 +12,8 @@
};
};
time.timeZone = "America/Toronto";
networking.networkmanager = {
enable = true;
};
@ -20,19 +22,73 @@
enable = true;
settings.PasswordAuthentication = false;
};
users.users.yadunut = {
shell = pkgs.zsh;
extraGroups = [ "input" ];
};
programs.zsh.enable = true;
nix.settings.experimental-features = [
"nix-command"
"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;
programs.hyprland = {
enable = true;
withUWSM = true;
};
programs._1password.enable = true;
programs._1password-gui.enable = true;
networking.hostName = "penguin";
environment.systemPackages = with pkgs; [
git
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" = {
mountpoint = "/.swapvol";
swap.swapfile.size = "64G";
# mountpoint = "/.swapvol";
# swap.swapfile.size = "64G";
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;
}