initial commit

This commit is contained in:
2023-07-07 08:49:04 +02:00
commit 08b84676a5
18 changed files with 524 additions and 0 deletions

6
os/system/i18n.nix Normal file
View File

@@ -0,0 +1,6 @@
{ pkgs, ... }: {
time.timeZone = "Europe/Zurich";
i18n.defaultLocale = "en_US.UTF-8";
console.keyMap = "sg";
}

20
os/system/network.nix Normal file
View File

@@ -0,0 +1,20 @@
{ pkgs, ... }: {
networking = {
hostName = "nixos";
networkmanager.enable = true;
firewall = {
enable = true;
allowedTCPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
allowedUDPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
};
};
}

21
os/system/packages.nix Normal file
View File

@@ -0,0 +1,21 @@
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [
fd
fzf
ripgrep
jq
git
gnumake
pinentry
vim
gcc
unzip
wget
plasma5Packages.bismuth
kdeconnect
firefox
thunderbird
remmina
docker-buildx
];
}

11
os/system/sound.nix Normal file
View File

@@ -0,0 +1,11 @@
{ pkgs, ... }: {
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
}

View File

@@ -0,0 +1,3 @@
{ pkgs, ... }: {
virtualisation.docker.enable = true;
}

9
os/system/xserver.nix Normal file
View File

@@ -0,0 +1,9 @@
{ pkgs, ... }: {
services.xserver = {
enable = true;
layout = "ch";
xkbVariant = "";
displayManager.sddm.enable = true;
desktopManager.plasma5.enable = true;
};
}