add sway on hopper
This commit is contained in:
parent
37cf0f03cb
commit
6b6746b82f
2 changed files with 63 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
systemProfiles,
|
systemProfiles,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = with systemProfiles; [
|
imports = with systemProfiles; [
|
||||||
|
@ -9,6 +10,7 @@
|
||||||
|
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./lab
|
./lab
|
||||||
|
./desktop.nix
|
||||||
|
|
||||||
secrets.default
|
secrets.default
|
||||||
secrets.hopper
|
secrets.hopper
|
||||||
|
@ -19,6 +21,10 @@
|
||||||
core.ssh
|
core.ssh
|
||||||
core.deploy
|
core.deploy
|
||||||
|
|
||||||
|
hardware.graphics
|
||||||
|
hardware.steam-hardware
|
||||||
|
hardware.bluetooth
|
||||||
|
|
||||||
nix.default # TODO slim this down
|
nix.default # TODO slim this down
|
||||||
|
|
||||||
network.tailscale
|
network.tailscale
|
||||||
|
@ -28,6 +34,17 @@
|
||||||
# services.syncthing # TODO make syncthing not rely on having "xun" user
|
# services.syncthing # TODO make syncthing not rely on having "xun" user
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nixpkgs.config = {
|
||||||
|
allowUnfreePredicate = pkg:
|
||||||
|
builtins.elem (lib.getName pkg) [
|
||||||
|
"nvidia-x11"
|
||||||
|
"nvidia-settings"
|
||||||
|
|
||||||
|
"stremio-shell"
|
||||||
|
"stremio-server"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
networking.hostName = "hopper";
|
networking.hostName = "hopper";
|
||||||
|
|
||||||
swapDevices = [];
|
swapDevices = [];
|
||||||
|
|
46
sys/machines/hopper/desktop.nix
Normal file
46
sys/machines/hopper/desktop.nix
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
users.users.desktop = {
|
||||||
|
isNormalUser = true;
|
||||||
|
useDefaultShell = true;
|
||||||
|
createHome = true;
|
||||||
|
extraGroups = [
|
||||||
|
"input"
|
||||||
|
"video"
|
||||||
|
"render"
|
||||||
|
"audio"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
firefox
|
||||||
|
stremio
|
||||||
|
];
|
||||||
|
|
||||||
|
environment.etc."sway/config.d/custom.conf".text = ''
|
||||||
|
output HDMI-A-1 {
|
||||||
|
scale 2.0
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
|
||||||
|
services.greetd = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
default_session = {
|
||||||
|
command = lib.getExe config.programs.sway.package;
|
||||||
|
user = "desktop";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.sway = {
|
||||||
|
enable = true;
|
||||||
|
wrapperFeatures.gtk = true;
|
||||||
|
extraOptions = ["--unsupported-gpu"];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue