aboutsummaryrefslogtreecommitdiff
path: root/hosts/mantis/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/mantis/configuration.nix')
-rw-r--r--hosts/mantis/configuration.nix71
1 files changed, 62 insertions, 9 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,