alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
RIP xerxes
author
lassulus
date
2 years ago
(Jan 14, 2025, 3:32 PM CET)
commit
e60c028e
e60c028e9fe269bd6acf6dd68437ab29808b9f9c
parent
32e7e3e4
32e7e3e48b896818cf98c2d66c651bea30f66b86
-166
2 changed files
Expand all
Collapse all
Unified
Split
machines
xerxes
config.nix
physical.nix
-83
machines/xerxes/config.nix
Reviewed
···
1
1
-
{
2
2
-
config,
3
3
-
lib,
4
4
-
pkgs,
5
5
-
...
6
6
-
}:
7
7
-
8
8
-
{
9
9
-
imports = [
10
10
-
../../2configs/retiolum.nix
11
11
-
../../2configs/exim-retiolum.nix
12
12
-
../../2configs/baseX.nix
13
13
-
../../2configs/pipewire.nix
14
14
-
../../2configs/browsers.nix
15
15
-
../../2configs/programs.nix
16
16
-
../../2configs/network-manager.nix
17
17
-
../../2configs/syncthing.nix
18
18
-
../../2configs/sync/sync.nix
19
19
-
../../2configs/steam.nix
20
20
-
../../2configs/wine.nix
21
21
-
../../2configs/fetchWallpaper.nix
22
22
-
../../2configs/pass.nix
23
23
-
../../2configs/mail.nix
24
24
-
];
25
25
-
26
26
-
krebs.build.host = config.krebs.hosts.xerxes;
27
27
-
28
28
-
environment.shellAliases = {
29
29
-
deploy = pkgs.writeDash "deploy" ''
30
30
-
set -eu
31
31
-
export SYSTEM="$1"
32
32
-
$(nix-build $HOME/sync/stockholm/lass/krops.nix --no-out-link --argstr name "$SYSTEM" -A deploy)
33
33
-
'';
34
34
-
usb-tether-on = pkgs.writeDash "usb-tether-on" ''
35
35
-
adb shell su -c service call connectivity 33 i32 1 s16 text
36
36
-
'';
37
37
-
usb-tether-off = pkgs.writeDash "usb-tether-off" ''
38
38
-
adb shell su -c service call connectivity 33 i32 0 s16 text
39
39
-
'';
40
40
-
};
41
41
-
42
42
-
services.xserver = {
43
43
-
displayManager.lightdm.autoLogin.enable = true;
44
44
-
displayManager.lightdm.autoLogin.user = "lass";
45
45
-
};
46
46
-
47
47
-
boot.blacklistedKernelModules = [ "xpad" ];
48
48
-
systemd.services.xboxdrv = {
49
49
-
wantedBy = [ "multi-user.target" ];
50
50
-
script = ''
51
51
-
${
52
52
-
pkgs.xboxdrv.overrideAttrs (o: {
53
53
-
patches = o.patches ++ [
54
54
-
(pkgs.fetchurl {
55
55
-
url = "https://patch-diff.githubusercontent.com/raw/xboxdrv/xboxdrv/pull/251.patch";
56
56
-
sha256 = "17784y20mxqrlhgvwvszh8lprxrvgmb7ah9dknmbhj5jhkjl8wq5";
57
57
-
})
58
58
-
];
59
59
-
})
60
60
-
}/bin/xboxdrv --type xbox360 --dbus disabled -D
61
61
-
'';
62
62
-
};
63
63
-
64
64
-
programs.adb.enable = true;
65
65
-
66
66
-
services.logind.lidSwitch = "suspend";
67
67
-
lass.screenlock.enable = lib.mkForce false;
68
68
-
69
69
-
hardware.bluetooth = {
70
70
-
enable = true;
71
71
-
powerOnBoot = true;
72
72
-
};
73
73
-
hardware.pulseaudio.package = pkgs.pulseaudioFull;
74
74
-
# hardware.pulseaudio.configFile = pkgs.writeText "default.pa" ''
75
75
-
# load-module module-bluetooth-policy
76
76
-
# load-module module-bluetooth-discover
77
77
-
# ## module fails to load with
78
78
-
# ## module-bluez5-device.c: Failed to get device path from module arguments
79
79
-
# ## module.c: Failed to load module "module-bluez5-device" (argument: ""): initialization failed.
80
80
-
# # load-module module-bluez5-device
81
81
-
# # load-module module-bluez5-discover
82
82
-
# '';
83
83
-
}
-83
machines/xerxes/physical.nix
Reviewed
···
1
1
-
{
2
2
-
modulesPath,
3
3
-
pkgs,
4
4
-
lib,
5
5
-
...
6
6
-
}:
7
7
-
{
8
8
-
imports = [
9
9
-
./config.nix
10
10
-
(modulesPath + "/installer/scan/not-detected.nix")
11
11
-
];
12
12
-
13
13
-
boot.loader.grub = {
14
14
-
enable = true;
15
15
-
device = "/dev/sda";
16
16
-
efiSupport = true;
17
17
-
efiInstallAsRemovable = true;
18
18
-
};
19
19
-
20
20
-
boot.blacklistedKernelModules = [
21
21
-
"sdhci_pci"
22
22
-
];
23
23
-
24
24
-
boot.initrd.availableKernelModules = [
25
25
-
"xhci_pci"
26
26
-
"ahci"
27
27
-
"usbhid"
28
28
-
"sd_mod"
29
29
-
];
30
30
-
boot.initrd.luks.devices.crypted.device = "/dev/sda3";
31
31
-
boot.kernelModules = [ "kvm-intel" ];
32
32
-
boot.kernelParams = [
33
33
-
"fbcon=rotate:1"
34
34
-
"boot.shell_on_fail"
35
35
-
];
36
36
-
37
37
-
fileSystems."/" = {
38
38
-
device = "/dev/disk/by-uuid/8efd0c22-f712-46bf-baad-1fbf19d9ec25";
39
39
-
fsType = "xfs";
40
40
-
};
41
41
-
42
42
-
fileSystems."/boot" = {
43
43
-
device = "/dev/disk/by-uuid/7F23-DDB4";
44
44
-
fsType = "vfat";
45
45
-
};
46
46
-
47
47
-
swapDevices = [ ];
48
48
-
49
49
-
boot.extraModprobeConfig = ''
50
50
-
options zfs zfs_arc_max=107374182
51
51
-
'';
52
52
-
53
53
-
nix.maxJobs = lib.mkDefault 4;
54
54
-
55
55
-
networking.hostId = "9b0a74ac";
56
56
-
networking.networkmanager.enable = true;
57
57
-
58
58
-
hardware.opengl.enable = true;
59
59
-
60
60
-
services.tlp.enable = true;
61
61
-
services.tlp.extraConfig = ''
62
62
-
CPU_SCALING_GOVERNOR_ON_AC=ondemand
63
63
-
CPU_SCALING_GOVERNOR_ON_BAT=powersave
64
64
-
CPU_MIN_PERF_ON_AC=0
65
65
-
CPU_MAX_PERF_ON_AC=100
66
66
-
CPU_MIN_PERF_ON_BAT=0
67
67
-
CPU_MAX_PERF_ON_BAT=30
68
68
-
'';
69
69
-
70
70
-
services.logind.extraConfig = ''
71
71
-
HandlePowerKey=suspend
72
72
-
IdleAction=suspend
73
73
-
IdleActionSec=300
74
74
-
'';
75
75
-
76
76
-
services.xserver = {
77
77
-
videoDrivers = [ "intel" ];
78
78
-
displayManager.sessionCommands = ''
79
79
-
(sleep 2 && ${pkgs.xorg.xrandr}/bin/xrandr --output eDP1 --rotate right)
80
80
-
(sleep 2 && ${pkgs.xorg.xinput}/bin/xinput set-prop "pointer:Goodix Capacitive TouchScreen" --type=float "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1)
81
81
-
'';
82
82
-
};
83
83
-
}