Skip to content

Commit bef7719

Browse files
authored
V1.1 (#13)
* Refactored sound; starmachine and snowmachine have same settings (#9) * Added git aliases to 'g()' function (#10) * Added NextDNS as secure DNS provider (#11) * Update flake (#12) * Updated flake.lock; resolved compile error and warnings * Enabled vim to address a deprecation warning * Update docs
1 parent 77f0624 commit bef7719

File tree

7 files changed

+94
-40
lines changed

7 files changed

+94
-40
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,15 @@ nh os switch .
6161

6262
# for home-manager changes
6363
nh home switch .
64-
```
64+
65+
# every once in a while
66+
nh clean all
67+
```
68+
69+
## update flakes
70+
Make sure you're on a new branch and that you've got 15 minutes for this thing to build.
71+
```bash
72+
nix flake update
73+
nh os switch && nh home switch
74+
```
75+
After that, you'll probably get a handful of errors and warnings that need to be resolved as a result of new deprecations or naming changes.

flake.lock

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

home/global/default.nix

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
gtk.theme.package = pkgs.adw-gtk3;
9393
gtk.theme.name = "adw-gtk3";
9494

95-
gtk.iconTheme.package = pkgs.gnome.adwaita-icon-theme;
95+
gtk.iconTheme.package = pkgs.adwaita-icon-theme;
9696
gtk.iconTheme.name = "Adwaita";
9797

9898
# theming engine
@@ -243,7 +243,7 @@
243243
# TERMINAL --------------------------
244244
programs.kitty = {
245245
enable = true;
246-
theme = lib.mkDefault "Novel"; #"Doom One";
246+
themeFile = lib.mkDefault "Novel"; #"Doom One";
247247
font = {
248248
size = 18;
249249
package = pkgs.dejavu_fonts;
@@ -332,7 +332,26 @@
332332
#echo "StackOverflow link is in clipboard"
333333
echo "https://stackoverflow.com/questions/927358/how-do-i-undo-the-most-recent-local-commits-in-git"
334334
elif [[ "$1" == "pp" ]]; then
335+
# Push
335336
git push --progress
337+
elif [[ "$1" == "l" ]]; then
338+
# Recent commits
339+
git log -3
340+
elif [[ "$1" == "ll" ]]; then
341+
# All of the commits
342+
git log
343+
elif [[ "$1" == "ch" ]]; then
344+
# Checkout a branch
345+
if [[ "$2" != "" ]]; then
346+
git checkout $2
347+
else
348+
git checkout $(
349+
git branch --list |
350+
grep -v "\*" | # everything but the currently selected branch
351+
sed 's/^[ \t]*//;s/[ \t]*$//' | fzf --height 25% --layout=reverse
352+
)
353+
354+
fi
336355
fi
337356
}
338357
kc() { # kubectl but as a rainbow

home/starmachine.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
];
99

1010
programs.kitty = {
11-
theme = "Doom One";
11+
themeFile = "Doom_One";
1212
};
1313
}

hosts/common/global/default.nix

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,22 @@
7575
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
7676

7777
# Enable networking
78-
networking.networkmanager.enable = true;
78+
networking.networkmanager = {
79+
enable = true;
80+
dns = "systemd-resolved";
81+
};
82+
services.resolved = {
83+
enable = true;
84+
extraConfig = lib.mkDefault ''
85+
DNS=45.90.28.0#c49352.dns.nextdns.io # TODO: consider implementing this native package; it's kind of trash though
86+
DNS=2a07:a8c0::#c49352.dns.nextdns.io # TODO: refactor so the hostname is auto-prefixed in this global config
87+
DNS=45.90.30.0#c49352.dns.nextdns.io
88+
DNS=2a07:a8c1::#c49352.dns.nextdns.io
89+
'';
90+
dnssec = "allow-downgrade";
91+
dnsovertls = "true";
92+
};
93+
7994
networking.hosts = {
8095
# example: "0.0.0.0" = [ "site-to-block.net" ];
8196
};
@@ -135,7 +150,7 @@
135150
services.hardware.bolt.enable = true;
136151

137152
# hardware acceleration
138-
hardware.opengl.extraPackages = [
153+
hardware.graphics.extraPackages = [
139154
pkgs.intel-compute-runtime
140155
];
141156

@@ -191,6 +206,16 @@
191206
};
192207
};
193208

209+
# Enable sound with pipewire.
210+
services.pulseaudio.enable = false;
211+
security.rtkit.enable = true;
212+
services.pipewire = {
213+
enable = true;
214+
alsa.enable = true;
215+
alsa.support32Bit = true;
216+
pulse.enable = true;
217+
};
218+
194219
# SECURITY --------------------------
195220
security.polkit.enable = true; # needed for sway
196221
security.pam.services.swaylock = {}; # needed for swaylock
@@ -210,7 +235,10 @@
210235
users.defaultUserShell = pkgs.zsh;
211236
programs.zsh.enable = true;
212237

213-
programs.vim.defaultEditor = true;
238+
programs.vim = {
239+
enable = true;
240+
defaultEditor = true;
241+
};
214242

215243
fonts.packages = with pkgs; [
216244
ibm-plex

hosts/snowmachine/default.nix

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@
2222
networking = {
2323
hostName = "snowmachine";
2424
};
25+
services.resolved = {
26+
extraConfig = ''
27+
DNS=45.90.28.0#snowmachine-c49352.dns.nextdns.io # TODO: consider implementing this native package; it's kind of trash though
28+
DNS=2a07:a8c0::#snowmachine-c49352.dns.nextdns.io
29+
DNS=45.90.30.0#snowmachine-c49352.dns.nextdns.io
30+
DNS=2a07:a8c1::#snowmachine-c49352.dns.nextdns.io
31+
'';
32+
};
2533

2634
# Bootloader.
2735
boot.loader.systemd-boot.enable = true;
@@ -32,16 +40,6 @@
3240
videoDrivers = [ "displayLink" "modesetting" ];
3341
};
3442

35-
# Enable sound with pipewire.
36-
sound.enable = true;
37-
hardware.pulseaudio.enable = false;
38-
security.rtkit.enable = true;
39-
services.pipewire = {
40-
enable = true;
41-
alsa.enable = true;
42-
alsa.support32Bit = true;
43-
pulse.enable = true;
44-
};
4543

4644
# SECURITY --------------------------
4745

hosts/starmachine/default.nix

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,25 @@
2222
networking = {
2323
hostName = "starmachine";
2424
};
25+
services.resolved = {
26+
extraConfig = ''
27+
DNS=45.90.28.0#starmachine-c49352.dns.nextdns.io # TODO: consider implementing this native package; it's kind of trash though
28+
DNS=2a07:a8c0::#starmachine-c49352.dns.nextdns.io
29+
DNS=45.90.30.0#starmachine-c49352.dns.nextdns.io
30+
DNS=2a07:a8c1::#starmachine-c49352.dns.nextdns.io
31+
'';
32+
};
2533

2634
# Bootloader.
2735
boot.loader.systemd-boot.enable = true;
2836
boot.loader.efi.canTouchEfiVariables = true;
2937

3038
# graphics card stuff
31-
hardware.opengl.enable = true;
39+
hardware.graphics.enable = true;
3240
hardware.nvidia = {
3341
open = false;
3442
};
3543

36-
# Enable sound with pipewire.
37-
sound.enable = false; # https://github.com/NixOS/nixpkgs/issues/319809#issuecomment-2167912680
38-
hardware.pulseaudio.enable = false;
39-
security.rtkit.enable = true;
40-
services.pipewire = {
41-
enable = true;
42-
alsa.enable = true;
43-
alsa.support32Bit = true;
44-
pulse.enable = true;
45-
};
4644

4745
# SECURITY --------------------------
4846

0 commit comments

Comments
 (0)