Migrate penguin to use nix

This commit is contained in:
Yadunand Prem 2025-08-31 01:17:48 +08:00
parent c594ff128f
commit 5ab0a414a6
6 changed files with 50 additions and 36 deletions

View File

@ -50,11 +50,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1755519972, "lastModified": 1756115622,
"narHash": "sha256-bU4nqi3IpsUZJeyS8Jk85ytlX61i4b0KCxXX9YcOgVc=", "narHash": "sha256-iv8xVtmLMNLWFcDM/HcAPLRGONyTRpzL9NS09RnryRM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "4073ff2f481f9ef3501678ff479ed81402caae6d", "rev": "bafad29f89e83b2d861b493aa23034ea16595560",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -183,11 +183,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1755491080, "lastModified": 1756496801,
"narHash": "sha256-ib1Xi13NEalrFqQAHceRsb+6aIPANFuQq80SS/bY10M=", "narHash": "sha256-IYIsnPy+cJxe8RbDHBrCtfJY0ry2bG2H7WvMcewiGS8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "f8af2cbe386f9b96dd9efa57ab15a09377f38f4d", "rev": "77a71380c38fb2a440b4b5881bbc839f6230e1cb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -210,16 +210,16 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1748294338, "lastModified": 1754860581,
"narHash": "sha256-FVO01jdmUNArzBS7NmaktLdGA5qA3lUMJ4B7a05Iynw=", "narHash": "sha256-EM0IE63OHxXCOpDHXaTyHIOk2cNvMCGPqLt/IdtVxgk=",
"owner": "NuschtOS", "owner": "NuschtOS",
"repo": "ixx", "repo": "ixx",
"rev": "cc5f390f7caf265461d4aab37e98d2292ebbdb85", "rev": "babfe85a876162c4acc9ab6fb4483df88fa1f281",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NuschtOS", "owner": "NuschtOS",
"ref": "v0.0.8", "ref": "v0.1.1",
"repo": "ixx", "repo": "ixx",
"type": "github" "type": "github"
} }
@ -242,11 +242,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1755186698, "lastModified": 1756386758,
"narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=", "narHash": "sha256-1wxxznpW2CKvI9VdniaUnTT2Os6rdRJcRUf65ZK9OtE=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "fbcf476f790d8a217c3eab4e12033dc4a0f6d23c", "rev": "dfb2f12e899db4876308eba6d93455ab7da304cd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -266,11 +266,11 @@
"systems": "systems_3" "systems": "systems_3"
}, },
"locked": { "locked": {
"lastModified": 1755095763, "lastModified": 1756305488,
"narHash": "sha256-cFwtMaONA4uKYk/rBrmFvIAQieZxZytoprzIblTn1HA=", "narHash": "sha256-+6cgFdac+DN5PAZg3YtRXAEdk++r6msy7wfFMNMNsEY=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "ecc7880e00a2a735074243d8a664a931d73beace", "rev": "b7e96214e8e7244eceae73c606dcd243f6d180a3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -289,11 +289,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1754301638, "lastModified": 1755555503,
"narHash": "sha256-aRgzcPDd2axHFOuMlPLuzmDptUM2JU8mUL3jfgbBeyc=", "narHash": "sha256-WiOO7GUOsJ4/DoMy2IC5InnqRDSo2U11la48vCCIjjY=",
"owner": "NuschtOS", "owner": "NuschtOS",
"repo": "search", "repo": "search",
"rev": "a60091045273484c040a91f5c229ba298f8ecc27", "rev": "6f3efef888b92e6520f10eae15b86ff537e1d2ea",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -13,6 +13,13 @@
nushell.enable = true; nushell.enable = true;
neovim.enable = true; neovim.enable = true;
home.packages = with pkgs; [
ouch
dive
just
rsync
];
services = { services = {
ollama = { ollama = {
enable = true; enable = true;
@ -26,10 +33,6 @@
"${pkgs.git-credential-oauth}/bin/git-credential-oauth" "${pkgs.git-credential-oauth}/bin/git-credential-oauth"
]; ];
programs = {
gh.enable = true;
};
home.stateVersion = "25.11"; home.stateVersion = "25.11";
programs.home-manager.enable = true; programs.home-manager.enable = true;
} }

View File

@ -344,7 +344,7 @@ in
}; };
project-nvim = { project-nvim = {
enable = true; enable = false;
enableTelescope = true; enableTelescope = true;
}; };
web-devicons.enable = true; web-devicons.enable = true;

View File

@ -15,6 +15,7 @@ in
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.shell.enableNushellIntegration = true;
programs = { programs = {
nushell = { nushell = {
enable = true; enable = true;
@ -22,7 +23,15 @@ in
$env.config.edit_mode = "vi" $env.config.edit_mode = "vi"
$env.config.buffer_editor = "nvim" $env.config.buffer_editor = "nvim"
$env.config.show_banner = false $env.config.show_banner = false
''; '';
shellAliases = {
lg = "lazygit";
js = "jj status";
jd = "jj diff";
jn = "jj new";
jf = "jj git fetch";
jp = "jj git push";
};
}; };
nix-your-shell = { nix-your-shell = {
enable = true; enable = true;

View File

@ -29,7 +29,7 @@ in
users.users = { users.users = {
yadunut = lib.snowfall.mkUser { yadunut = lib.snowfall.mkUser {
extraGroups = [ "wheel" ]; extraGroups = [ "wheel" ];
shell = pkgs.zsh; shell = pkgs.nushell;
hashedPassword = "$y$j9T$9ATrmrhedhb.mAZ4//PiN/$OStCOaJHt3kPA63imTG3zLMWCSLoWCUph5O6jl5mcZ."; hashedPassword = "$y$j9T$9ATrmrhedhb.mAZ4//PiN/$OStCOaJHt3kPA63imTG3zLMWCSLoWCUph5O6jl5mcZ.";
}; };
root = lib.snowfall.mkUser { root = lib.snowfall.mkUser {

View File

@ -32,16 +32,18 @@ in
time.timeZone = "Asia/Singapore"; time.timeZone = "Asia/Singapore";
networking.firewall = { networking={
enable = true; networkmanager.enable = true;
allowedTCPPorts = [ nftables.enable = true;
22 firewall = {
3000 enable = true;
3001 allowedTCPPorts = [
]; 22
networkmanager.enable = true; 3000
nftables.enable = true; 3001
trustedInterfaces = [ "tailscale0" ]; ];
trustedInterfaces = [ "tailscale0" ];
};
}; };
services.openssh = { services.openssh = {