Skip to content

Commit 4a9b07c

Browse files
committed
feat: add stubs for bastion and quasar
1 parent 019504a commit 4a9b07c

5 files changed

Lines changed: 239 additions & 249 deletions

File tree

modules/hosts/bastion/bastion.nix

Lines changed: 188 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
1+
{ inputs, den, ... }:
2+
3+
{
4+
den.hosts.x86_64-linux.bastion = {
5+
users.gabe = { };
6+
7+
settings = {
8+
base.hasDisplay = true;
9+
monitors = {
10+
enable = true;
11+
monitors =
12+
let
13+
isVM = true; # TODO: remove this when not testing in a VM
14+
in
15+
if isVM then
16+
[
17+
{
18+
name = "Virtual-1";
19+
primary = true;
20+
height = 1386;
21+
width = 2536;
22+
rate = 74.999;
23+
workspaces = [
24+
{
25+
name = "shell";
26+
number = 1;
27+
}
28+
{
29+
name = "browser";
30+
number = 2;
31+
}
32+
{
33+
name = "chat";
34+
number = 3;
35+
}
36+
{
37+
name = "music";
38+
number = 4;
39+
}
40+
];
41+
}
42+
]
43+
else
44+
[
45+
{
46+
name = "DP-1";
47+
primary = true;
48+
height = 1440;
49+
width = 2560;
50+
rate = 144;
51+
workspaces = [
52+
{
53+
name = "shell";
54+
number = 1;
55+
}
56+
{
57+
name = "www";
58+
number = 2;
59+
}
60+
{
61+
name = "chat";
62+
number = 3;
63+
}
64+
{
65+
name = "files";
66+
number = 4;
67+
}
68+
{
69+
name = "five";
70+
number = 5;
71+
}
72+
{
73+
name = "six";
74+
number = 6;
75+
}
76+
];
77+
}
78+
{
79+
name = "DP-2";
80+
height = 1440;
81+
width = 2560;
82+
rate = 144;
83+
x = 2560;
84+
workspaces = [
85+
{
86+
name = "music";
87+
number = 7;
88+
}
89+
{
90+
name = "r-www";
91+
number = 8;
92+
}
93+
{
94+
name = "video";
95+
number = 9;
96+
}
97+
{
98+
name = "ten";
99+
number = 10;
100+
}
101+
];
102+
}
103+
];
104+
};
105+
106+
audio.devices = [
107+
{
108+
name = "Schiit Stack";
109+
matches = "alsa_output.usb-Schiit_Audio_Schiit_Unison_Modi_Multi_2-00.*";
110+
}
111+
# {
112+
# name = "Speakers";
113+
# matches = "alsa_output.pci-0000_2e_00*";
114+
# }
115+
{
116+
name = "Ultras";
117+
type = "bluetooth";
118+
matches = "bluez_output.BC_87_FA_26_3B_97.*";
119+
}
120+
{
121+
name = "Arctis 7 Game";
122+
matches = "alsa_output.usb-SteelSeries_SteelSeries_Arctis_7-00.stereo-game*";
123+
}
124+
{
125+
name = "Arctis 7 Chat";
126+
matches = "alsa_output.usb-SteelSeries_SteelSeries_Arctis_7-00.mono-chat*";
127+
}
128+
{
129+
name = "Sunshine Client";
130+
matches = "*sink-sunshine-stereo*";
131+
}
132+
];
133+
};
134+
};
135+
136+
den.aspects.bastion = {
137+
includes = [
138+
# den.aspects.bastion-fs
139+
den.aspects.workstation
140+
den.aspects.gpu
141+
142+
# until no longer on a VM
143+
den.aspects.vm
144+
];
145+
146+
nixos = {
147+
# imports = [ inputs.nixos-hardware.nixosModules.framework-16-7040-amd ];
148+
149+
# TODO: re-enable when not testing in a VM
150+
# hardware.facter.reportPath = ./facter.json;
151+
152+
system.stateVersion = "23.11";
153+
154+
gpu.amd = true;
155+
156+
# fix home-manager not working on temp VMs
157+
# https://github.com/nix-community/home-manager/issues/6364#issuecomment-2965010115
158+
# TODO: remove this when not testing in a VM
159+
home-manager.useUserPackages = true;
160+
home-manager.backupFileExtension = "bak";
161+
};
162+
163+
homeManager =
164+
{ pkgs, ... }:
165+
{
166+
home.packages = with pkgs; [
167+
audacity # audio editor
168+
# beekeeper-studio-ultimate # database manager
169+
# citron # switch emulator # TODO: switch to eden
170+
# deluge # torrent client
171+
# dolphin-emu # gamecube/wii emulator
172+
ente-desktop # photos app
173+
# nautilus # file manager
174+
# neovide # neovim gui
175+
kdePackages.okular # ebook, pdf, comic, etc. reader
176+
reboot-to-windows # reboot to windows
177+
];
178+
};
179+
};
180+
181+
flake-file.inputs = {
182+
disko = {
183+
url = "github:nix-community/disko";
184+
inputs.nixpkgs.follows = "nixpkgs";
185+
};
186+
nixos-hardware.url = "github:nixos/nixos-hardware";
187+
};
188+
}

modules/hosts/quasar/quasar.nix

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{ inputs, den, ... }:
2+
3+
{
4+
den.hosts.x86_64-linux.quasar = {
5+
users.gabe = { };
6+
# users.data = { };
7+
};
8+
9+
den.aspects.quasar = {
10+
includes = [
11+
# den.aspects.quasar-fs
12+
den.aspects.base
13+
# den.aspects.server
14+
# den.aspects.gpu
15+
16+
# until no longer on a VM
17+
# den.aspects.vm
18+
];
19+
20+
nixos = {
21+
# imports = [ inputs.nixos-hardware.nixosModules.framework-16-7040-amd ];
22+
23+
# TODO: re-enable when not testing in a VM
24+
# hardware.facter.reportPath = ./facter.json;
25+
26+
system.stateVersion = "23.11";
27+
28+
gpu.nvidia.enable = true;
29+
30+
# fix home-manager not working on temp VMs
31+
# https://github.com/nix-community/home-manager/issues/6364#issuecomment-2965010115
32+
# TODO: remove this when not testing in a VM
33+
home-manager.useUserPackages = true;
34+
home-manager.backupFileExtension = "bak";
35+
};
36+
37+
homeManager =
38+
{ pkgs, ... }:
39+
{
40+
home.packages = with pkgs; [ moonlight-qt ];
41+
};
42+
};
43+
44+
flake-file.inputs = {
45+
disko = {
46+
url = "github:nix-community/disko";
47+
inputs.nixpkgs.follows = "nixpkgs";
48+
};
49+
nixos-hardware.url = "github:nixos/nixos-hardware";
50+
};
51+
}

oldflake/home/gabe/bastion.nix

Lines changed: 0 additions & 140 deletions
This file was deleted.

oldflake/home/gabe/quasar.nix

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)