aboutsummaryrefslogtreecommitdiff
path: root/hosts/mantis
diff options
context:
space:
mode:
authorAkshay <[email protected]>2024-08-26 11:41:50 +0100
committerAkshay <[email protected]>2024-08-26 11:41:50 +0100
commit5c68dbde55056cb8bd05c0ff862b6f2ed8336719 (patch)
treef2830f9f6483e89ba73d1725361a8a7006501b6c /hosts/mantis
parente1358eef49165dad0b812ed4cfc9d0e9bcd76471 (diff)
fmt
Diffstat (limited to 'hosts/mantis')
-rw-r--r--hosts/mantis/configuration.nix71
-rw-r--r--hosts/mantis/hardware-configuration.nix12
-rw-r--r--hosts/mantis/home.nix10
3 files changed, 78 insertions, 15 deletions
diff --git a/hosts/mantis/configuration.nix b/hosts/mantis/configuration.nix
index c774eef..d21a7b1 100644
--- a/hosts/mantis/configuration.nix
+++ b/hosts/mantis/configuration.nix
@@ -4,13 +4,16 @@
4 4
5{ 5{
6 imports = 6 imports =
7 [ # Include the results of the hardware scan. 7 [
8 # Include the results of the hardware scan.
8 ./hardware-configuration.nix 9 ./hardware-configuration.nix
9 ]; 10 ];
10 11
11 # Use the systemd-boot EFI boot loader. 12 # Use the systemd-boot EFI boot loader.
12 boot.loader.systemd-boot.enable = true; 13 boot.loader.systemd-boot.enable = true;
13 boot.loader.efi.canTouchEfiVariables = true; 14 boot.loader.efi.canTouchEfiVariables = true;
15 boot.kernelPackages = pkgs.linuxPackages_latest;
16 boot.kernelParams = [ "i915.force_probe=4650" ];
14 17
15 networking.hostName = "mantis"; 18 networking.hostName = "mantis";
16 time.timeZone = "Europe/London"; 19 time.timeZone = "Europe/London";
@@ -19,12 +22,30 @@
19 prompt 22 prompt
20 better-text-objs 23 better-text-objs
21 vim-colors-plain 24 vim-colors-plain
25 niri
22 ]; 26 ];
23 27
28 nixpkgs.config = {
29 "2bwm".patches = [
30 ../../patches/2bwm/nerd-patch.diff
31 ];
32
33 st = {
34 conf = builtins.readFile ../../programs/st/config.h;
35 extraLibs = with pkgs; [ harfbuzz ];
36 patches = [
37 ../../patches/st/xres.diff
38 ../../patches/st/bright.diff
39 ../../patches/st/ligatures.diff
40 ];
41 };
42 };
43
44 programs.niri.enable = true;
24 45
25 users.users.op = { 46 users.users.op = {
26 isNormalUser = true; 47 isNormalUser = true;
27 extraGroups = [ "wheel" ]; 48 extraGroups = [ "wheel" "docker" ];
28 packages = with pkgs; [ 49 packages = with pkgs; [
29 qutebrowser 50 qutebrowser
30 tree 51 tree
@@ -33,17 +54,49 @@
33 home = "/home/op"; 54 home = "/home/op";
34 }; 55 };
35 56
36 environment.systemPackages = with pkgs; [ 57 environment = {
37 man-pages 58 systemPackages = with pkgs; [
38 man-pages-posix 59 man-pages
39 (lib.hiPrio pkgs.bashInteractive_5) 60 man-pages-posix
40 ]; 61 (lib.hiPrio pkgs.bashInteractive_5)
62 _2bwm
63 ];
64 variables = {
65 QT_SCALE_FACTOR_ROUNDING_POLICY = "RoundPreferFloor";
66 };
67 };
41 68
42 services = { 69 services = {
43 openssh.enable = true; 70 openssh = {
44 tailscale.enable = true; 71 enable = true;
72 settings = {
73 X11Forwarding = true;
74 PrintMotd = true;
75 };
76 };
77 tailscale.enable = true;
78 libinput.enable = true;
79 xserver = {
80 enable = true;
81 displayManager.startx.enable = true;
82 };
45 }; 83 };
46 84
85 hardware.opengl.extraPackages = [
86 pkgs.vpl-gpu-rt
87 ];
88
89 services.pipewire = {
90 enable = true;
91 alsa.enable = true;
92 alsa.support32Bit = true;
93 pulse.enable = true;
94 jack.enable = true;
95 };
96
97
98 virtualisation.docker.enable = true;
99
47 nix.settings.experimental-features = [ "nix-command" "flakes" ]; 100 nix.settings.experimental-features = [ "nix-command" "flakes" ];
48 101
49 # This option defines the first version of NixOS you have installed on this particular machine, 102 # This option defines the first version of NixOS you have installed on this particular machine,
diff --git a/hosts/mantis/hardware-configuration.nix b/hosts/mantis/hardware-configuration.nix
index 3f04a4a..bebdb21 100644
--- a/hosts/mantis/hardware-configuration.nix
+++ b/hosts/mantis/hardware-configuration.nix
@@ -5,7 +5,8 @@
5 5
6{ 6{
7 imports = 7 imports =
8 [ (modulesPath + "/installer/scan/not-detected.nix") 8 [
9 (modulesPath + "/installer/scan/not-detected.nix")
9 ]; 10 ];
10 11
11 boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; 12 boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
@@ -14,19 +15,20 @@
14 boot.extraModulePackages = [ ]; 15 boot.extraModulePackages = [ ];
15 16
16 fileSystems."/" = 17 fileSystems."/" =
17 { device = "/dev/disk/by-uuid/efd94de4-c3fa-4a3b-98f9-66ccfb8479b9"; 18 {
19 device = "/dev/disk/by-uuid/efd94de4-c3fa-4a3b-98f9-66ccfb8479b9";
18 fsType = "ext4"; 20 fsType = "ext4";
19 }; 21 };
20 22
21 fileSystems."/boot" = 23 fileSystems."/boot" =
22 { device = "/dev/disk/by-uuid/5BBB-E6FE"; 24 {
25 device = "/dev/disk/by-uuid/5BBB-E6FE";
23 fsType = "vfat"; 26 fsType = "vfat";
24 options = [ "fmask=0022" "dmask=0022" ]; 27 options = [ "fmask=0022" "dmask=0022" ];
25 }; 28 };
26 29
27 swapDevices = 30 swapDevices =
28 [ { device = "/dev/disk/by-uuid/65faea2e-c2ce-4ec2-8aca-e09e5073676b"; } 31 [{ device = "/dev/disk/by-uuid/65faea2e-c2ce-4ec2-8aca-e09e5073676b"; }];
29 ];
30 32
31 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 33 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
32 # (the default) this is the recommended approach. When using systemd-networkd it's 34 # (the default) this is the recommended approach. When using systemd-networkd it's
diff --git a/hosts/mantis/home.nix b/hosts/mantis/home.nix
index 84a365f..bcdb0ee 100644
--- a/hosts/mantis/home.nix
+++ b/hosts/mantis/home.nix
@@ -24,14 +24,15 @@
24 vim 24 vim
25 weechat 25 weechat
26 firefox 26 firefox
27 thunderbird
27 qutebrowser 28 qutebrowser
28 unzip 29 unzip
29 tmux 30 tmux
30 xclip
31 ripgrep 31 ripgrep
32 miniserve 32 miniserve
33 pfetch 33 pfetch
34 st 34 st
35 rxvt-unicode
35 cmus 36 cmus
36 tree 37 tree
37 w3m 38 w3m
@@ -44,9 +45,12 @@
44 pavucontrol 45 pavucontrol
45 bc 46 bc
46 killall 47 killall
48 signal-desktop
49 alsa-utils
47 50
48 wget 51 wget
49 curl 52 curl
53 mosh
50 54
51 imagemagick 55 imagemagick
52 ffmpeg-full 56 ffmpeg-full
@@ -63,6 +67,10 @@
63 xinput_calibrator 67 xinput_calibrator
64 libinput 68 libinput
65 69
70 # wayland stuff
71 wl-clipboard-rs
72 swaybg
73
66 nixpkgs-fmt 74 nixpkgs-fmt
67 75
68 ] ++ (import ../../scripts { inherit pkgs; }); 76 ] ++ (import ../../scripts { inherit pkgs; });