cosmic
This commit is contained in:
parent
1bde6e75f0
commit
8002a8f725
7 changed files with 149 additions and 65 deletions
15
classes/desktop/cosmic.nix
Normal file
15
classes/desktop/cosmic.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{inputs, ...}: {
|
||||
imports = [
|
||||
inputs.nixos-cosmic.nixosModules.default
|
||||
];
|
||||
|
||||
nix.settings = {
|
||||
substituters = ["https://cosmic.cachix.org/"];
|
||||
trusted-public-keys = ["cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="];
|
||||
};
|
||||
|
||||
services = {
|
||||
desktopManager.cosmic.enable = true;
|
||||
displayManager.cosmic-greeter.enable = true;
|
||||
};
|
||||
}
|
|
@ -3,39 +3,12 @@
|
|||
in {
|
||||
services.resolved.enable = true;
|
||||
|
||||
# TODO
|
||||
networking = {
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
dns = "systemd-resolved";
|
||||
};
|
||||
firewall = {
|
||||
allowedTCPPorts = [
|
||||
# Spotify track sync
|
||||
57621
|
||||
# Steam Remote Play
|
||||
27036
|
||||
# Source Dedicated Server SRCDS Rcon port
|
||||
27015
|
||||
# Syncthing TCP based sync protocol traffic
|
||||
22000
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
# Source Dedicated Server gameplay traffic
|
||||
27015
|
||||
# Syncthing QUIC based sync protocol traffic
|
||||
22000
|
||||
# Syncthing port for discovery broadcasts on IPv4 and multicasts on IPv6
|
||||
21027
|
||||
];
|
||||
allowedUDPPortRanges = [
|
||||
# Steam Remote Play
|
||||
{
|
||||
from = 27031;
|
||||
to = 27036;
|
||||
}
|
||||
];
|
||||
};
|
||||
firewall.enable = false;
|
||||
};
|
||||
|
||||
users.users.${mainUser}.extraGroups = ["networkmanager"];
|
||||
|
|
3
classes/desktop/xdg.nix
Normal file
3
classes/desktop/xdg.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
xdg.portal.xdgOpenUsePortal = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue