Skip to content

Commit a6dc618

Browse files
committed
vibecoded site
1 parent a0279e1 commit a6dc618

38 files changed

+2557
-653
lines changed

content/posts/getting-started.norg

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
@document.meta
2+
title: Getting Started
3+
description: Introduction to Nix and NixOS
4+
authors: ladas552
5+
categories: [
6+
tutorial
7+
basics
8+
]
9+
created: 2025-12-01T10:00:00+05:00
10+
updated: 2025-12-01T10:00:00+05:00
11+
layout: post
12+
draft: false
13+
version: 1.1.1
14+
@end
15+
16+
* Getting Started with Nix
17+
18+
Welcome to the Nix documentation! This guide will help you understand the basics of Nix and how to get started.
19+
20+
** What is Nix?
21+
22+
Nix is a powerful package manager that makes package management reliable and reproducible. It provides:
23+
- Declarative system configuration
24+
- Atomic upgrades and rollbacks
25+
- Multiple package versions
26+
- Reliable dependency management
27+
28+
** Installation
29+
30+
To install Nix on your system:
31+
32+
@code bash
33+
sh <(curl -L https://nixos.org/nix/install) --daemon
34+
@end
35+
36+
** First Steps
37+
38+
After installation, try these commands:
39+
40+
@code bash
41+
# Search for packages
42+
nix search nixpkgs hello
43+
44+
# Install a package
45+
nix-env -iA nixpkgs.hello
46+
47+
# Run hello
48+
hello
49+
@end
50+
51+
** Next Steps
52+
53+
- Learn about Flakes
54+
- Explore NixOS
55+
- Build your first derivation

content/posts/nix.norg

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
@document.meta
22
title: Nix
3-
description:
4-
authors: [
5-
ladas552
6-
]
3+
description: Introduction to Nix package manager
4+
authors: ladas552
75
categories: [
8-
6+
basics
97
]
108
created: 2025-11-12T09:29:23+05:00
119
updated: 2025-11-12T15:14:38
1210
layout: post
11+
draft: false
1312
version: 1.1.1
1413
@end
1514

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
@document.meta
2+
title: NixOS Configuration
3+
description: How to configure NixOS declaratively
4+
authors: ladas552
5+
categories: [
6+
nixos
7+
configuration
8+
]
9+
created: 2025-12-03T10:00:00+05:00
10+
updated: 2025-12-03T10:00:00+05:00
11+
layout: post
12+
draft: false
13+
version: 1.1.1
14+
@end
15+
16+
* NixOS Configuration
17+
18+
NixOS allows you to configure your entire system declaratively in `/etc/nixos/configuration.nix`.
19+
20+
** Basic Configuration
21+
22+
@code nix
23+
{ config, pkgs, ... }:
24+
25+
{
26+
# System packages
27+
environment.systemPackages = with pkgs; [
28+
vim
29+
git
30+
htop
31+
];
32+
33+
# Enable services
34+
services.openssh.enable = true;
35+
36+
# User configuration
37+
users.users.myuser = {
38+
isNormalUser = true;
39+
extraGroups = [ "wheel" "networkmanager" ];
40+
};
41+
}
42+
@end
43+
44+
** Managing Services
45+
46+
NixOS makes service management simple:
47+
48+
@code nix
49+
services = {
50+
nginx.enable = true;
51+
postgresql.enable = true;
52+
docker.enable = true;
53+
};
54+
@end
55+
56+
** Applying Changes
57+
58+
@code bash
59+
# Test configuration
60+
nixos-rebuild test
61+
62+
# Apply and make permanent
63+
nixos-rebuild switch
64+
@end
65+
66+
** Rollbacks
67+
68+
If something breaks, just rollback:
69+
70+
@code bash
71+
# List generations
72+
nixos-rebuild list-generations
73+
74+
# Rollback to previous
75+
nixos-rebuild switch --rollback
76+
@end
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
@document.meta
2+
title: Package Management
3+
description: Managing packages with Nix
4+
authors: ladas552
5+
categories: [
6+
packages
7+
nix
8+
]
9+
layout: post
10+
draft: false
11+
created: 2025-12-04
12+
version: 1.1.1
13+
@end
14+
15+
* Package Management
16+
17+
Learn how to install, update, and manage packages with Nix.
18+
19+
** Installing Packages
20+
21+
@code bash
22+
# Imperative install
23+
nix-env -iA nixpkgs.firefox
24+
25+
# Using nix profile (new)
26+
nix profile install nixpkgs#firefox
27+
28+
# Temporary shell
29+
nix shell nixpkgs#nodejs
30+
@end
31+
32+
** Searching Packages
33+
34+
@code bash
35+
# Search nixpkgs
36+
nix search nixpkgs python
37+
38+
# Online search
39+
# Visit search.nixos.org
40+
@end
41+
42+
** Updating Packages
43+
44+
@code bash
45+
# Update channel
46+
nix-channel --update
47+
48+
# Upgrade all packages
49+
nix-env -u
50+
51+
# Upgrade specific package
52+
nix-env -u firefox
53+
@end
54+
55+
** Removing Packages
56+
57+
@code bash
58+
# Remove a package
59+
nix-env -e firefox
60+
61+
# Collect garbage
62+
nix-collect-garbage -d
63+
@end
64+
65+
** Using Overlays
66+
67+
Overlays let you customize packages:
68+
69+
@code nix
70+
# In your configuration
71+
nixpkgs.overlays = [
72+
(self: super: {
73+
myPackage = super.myPackage.overrideAttrs (old: {
74+
# Your modifications
75+
});
76+
})
77+
];
78+
@end
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
@document.meta
2+
title: Understanding Flakes
3+
description: Deep dive into Nix Flakes
4+
authors: ladas552
5+
categories: [
6+
tutorial
7+
flakes
8+
]
9+
created: 2025-12-02
10+
layout: post
11+
draft: true
12+
version: 1.1.1
13+
@end
14+
15+
* Understanding Flakes
16+
17+
Nix Flakes are a new way to manage Nix configurations with better reproducibility and composability.
18+
19+
** Why Flakes?
20+
21+
Flakes provide:
22+
- Lock files for reproducibility
23+
- Standardized structure
24+
- Better dependency management
25+
- Cleaner CLI interface
26+
27+
** Basic Flake Structure
28+
29+
A minimal flake.nix:
30+
31+
@code nix
32+
{
33+
description = "My first flake";
34+
35+
inputs = {
36+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
37+
};
38+
39+
outputs = { self, nixpkgs }: {
40+
# Your outputs here
41+
};
42+
}
43+
@end
44+
45+
** Common Commands
46+
47+
@code bash
48+
# Update flake inputs
49+
nix flake update
50+
51+
# Show flake info
52+
nix flake show
53+
54+
# Build from flake
55+
nix build
56+
@end
57+
58+
** Best Practices
59+
60+
- Pin your inputs
61+
- Use semantic versions
62+
- Document your flake
63+
- Keep flake.lock in version control

norgolith.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ footer_author_link = "https://codeberg.org/amartin"
2323
enable_mermaid = true
2424

2525
[extra.nav]
26-
About = '/about'
27-
Posts = '/posts'
2826
Tags = '/categories'
29-
RSS = '/rss.xml'
3027

3128
[extra.footer]
3229
GitHub = 'https://github.com/NTBBloodbath'

public/assets/css/code-blocks.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/assets/css/font.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/assets/css/prism-sweetie.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/assets/css/style.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)