feat: server test

This commit is contained in:
Nick 2025-01-30 13:37:27 -06:00
parent 04d561de0c
commit 712b89b7ab
2 changed files with 4 additions and 20 deletions

View file

@ -1,16 +0,0 @@
{
nix.settings = {
substituters = [
"https://cosmic.cachix.org/"
];
trusted-public-keys = [
"cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="
];
};
environment.sessionVariables.COSMIC_DATA_CONTROL_ENABLED = 1;
services = {
desktopManager.cosmic.enable = true;
displayManager.cosmic-greeter.enable = true;
};
}

View file

@ -15,13 +15,13 @@ let
devices
;
hostname = config.networking.hostName;
desktop = devices.desktop.name;
fallaryn = devices.fallaryn.name;
user0devices = devices.desktop.name || devices.server.name;
user2devices = devices.fallaryn.name;
userLogic =
if hostname == desktop then
if hostname == user0devices then
user0
else if hostname == fallaryn then
else if hostname == user2devices then
user2
else
"";