mirror of
https://github.com/Moe1369/nixos-config.git
synced 2024-10-18 06:24:07 +02:00
Merge branch 'main' of https://github.com/Moe1369/nixos-config
This commit is contained in:
commit
e86913e0f6
BIN
assets/wallpaper-clouds.png
Normal file
BIN
assets/wallpaper-clouds.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 MiB |
BIN
assets/wallpaper-sword.jpg
Normal file
BIN
assets/wallpaper-sword.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 MiB |
4
container/agent-manager/default.nix
Normal file
4
container/agent-manager/default.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
4
container/authentik/default.nix
Normal file
4
container/authentik/default.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
4
container/dockge/default.nix
Normal file
4
container/dockge/default.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
4
container/emby/default.nix
Normal file
4
container/emby/default.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
4
container/gitea/default.nix
Normal file
4
container/gitea/default.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
4
container/jellyseerr/default.nix
Normal file
4
container/jellyseerr/default.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
4
container/lidarr/default.nix
Normal file
4
container/lidarr/default.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
4
container/radarr/default.nix
Normal file
4
container/radarr/default.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
4
container/recyclarr/default.nix
Normal file
4
container/recyclarr/default.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
4
container/sabnzbd/default.nix
Normal file
4
container/sabnzbd/default.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
4
container/sonarr/default.nix
Normal file
4
container/sonarr/default.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
4
container/syncthing/default.nix
Normal file
4
container/syncthing/default.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
15
dotfiles/kwinrulesrc
Normal file
15
dotfiles/kwinrulesrc
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
[2ade3df0-3c0b-4f75-bc22-ccfc46b21de9]
|
||||||
|
Description=Fenster-Einstellungen für vesktop
|
||||||
|
clientmachine=localhost
|
||||||
|
decocolor=BreezeDark
|
||||||
|
decocolorrule=2
|
||||||
|
title=• Discord | #nixos | Nix/NixOS (unofficial)
|
||||||
|
types=1
|
||||||
|
windowrole=browser-window
|
||||||
|
windowrolematch=1
|
||||||
|
wmclass=vesktop
|
||||||
|
wmclassmatch=1
|
||||||
|
|
||||||
|
[General]
|
||||||
|
count=1
|
||||||
|
rules=2ade3df0-3c0b-4f75-bc22-ccfc46b21de9
|
80
flake.nix
80
flake.nix
@ -13,6 +13,7 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
inputs.home-manager.follows = "home-manager";
|
inputs.home-manager.follows = "home-manager";
|
||||||
};
|
};
|
||||||
|
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.4.1";
|
||||||
};
|
};
|
||||||
# Define Outputs, import Modules
|
# Define Outputs, import Modules
|
||||||
outputs =
|
outputs =
|
||||||
@ -21,6 +22,7 @@
|
|||||||
home-manager,
|
home-manager,
|
||||||
jovian,
|
jovian,
|
||||||
plasma-manager,
|
plasma-manager,
|
||||||
|
nix-flatpak,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@ -31,6 +33,7 @@
|
|||||||
# NixOS Modules for all hosts
|
# NixOS Modules for all hosts
|
||||||
systemModules = [
|
systemModules = [
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
nix-flatpak.nixosModules.nix-flatpak
|
||||||
./modules/system/apps-shell
|
./modules/system/apps-shell
|
||||||
./modules/system/boot
|
./modules/system/boot
|
||||||
./modules/system/devices
|
./modules/system/devices
|
||||||
@ -39,7 +42,6 @@
|
|||||||
./modules/system/networking
|
./modules/system/networking
|
||||||
./modules/system/nixsettings
|
./modules/system/nixsettings
|
||||||
./modules/system/shell
|
./modules/system/shell
|
||||||
./modules/system/syncthing
|
|
||||||
./modules/system/systemversion
|
./modules/system/systemversion
|
||||||
./modules/system/upgrades
|
./modules/system/upgrades
|
||||||
./modules/system/users
|
./modules/system/users
|
||||||
@ -48,6 +50,7 @@
|
|||||||
userModules = [
|
userModules = [
|
||||||
./modules/user/git
|
./modules/user/git
|
||||||
./modules/user/homeversion
|
./modules/user/homeversion
|
||||||
|
./modules/user/shell
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@ -77,9 +80,11 @@
|
|||||||
./modules/system/controller
|
./modules/system/controller
|
||||||
./modules/system/jovian-${hostName}
|
./modules/system/jovian-${hostName}
|
||||||
./modules/system/lact
|
./modules/system/lact
|
||||||
./modules/system/sddm
|
|
||||||
./modules/system/plasma
|
./modules/system/plasma
|
||||||
|
./modules/system/retrodeck
|
||||||
./modules/system/steam
|
./modules/system/steam
|
||||||
|
./modules/system/syncthing
|
||||||
|
./modules/system/sddm
|
||||||
{
|
{
|
||||||
# Device specific Home Manager Modules
|
# Device specific Home Manager Modules
|
||||||
home-manager.users.${user}.imports = userModules ++ [
|
home-manager.users.${user}.imports = userModules ++ [
|
||||||
@ -117,7 +122,9 @@
|
|||||||
./modules/system/jovian-${hostName}
|
./modules/system/jovian-${hostName}
|
||||||
./modules/system/lact
|
./modules/system/lact
|
||||||
./modules/system/plasma
|
./modules/system/plasma
|
||||||
|
./modules/system/retrodeck
|
||||||
./modules/system/steam
|
./modules/system/steam
|
||||||
|
./modules/system/syncthing
|
||||||
{
|
{
|
||||||
# Device specific Home Manager Modules
|
# Device specific Home Manager Modules
|
||||||
home-manager.users.${user}.imports = userModules ++ [
|
home-manager.users.${user}.imports = userModules ++ [
|
||||||
@ -128,5 +135,74 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
konsole =
|
||||||
|
let
|
||||||
|
user = "deck";
|
||||||
|
hostName = "konsole";
|
||||||
|
in
|
||||||
|
lib.nixosSystem {
|
||||||
|
specialArgs = {
|
||||||
|
inherit systemModules;
|
||||||
|
inherit userModules;
|
||||||
|
inherit system;
|
||||||
|
inherit user;
|
||||||
|
inherit hostName;
|
||||||
|
};
|
||||||
|
system = system;
|
||||||
|
# Device specific NixOS Modules
|
||||||
|
modules = systemModules ++ [
|
||||||
|
jovian.nixosModules.jovian
|
||||||
|
./hosts/${hostName}
|
||||||
|
./modules/system/apps-misc
|
||||||
|
./modules/system/browser
|
||||||
|
./modules/system/controller
|
||||||
|
./modules/system/jovian-${hostName}
|
||||||
|
./modules/system/lact
|
||||||
|
./modules/system/plasma
|
||||||
|
./modules/system/retrodeck
|
||||||
|
./modules/system/steam
|
||||||
|
./modules/system/syncthing
|
||||||
|
{
|
||||||
|
# Device specific Home Manager Modules
|
||||||
|
home-manager.users.${user}.imports = userModules ++ [
|
||||||
|
./modules/user/plasma
|
||||||
|
];
|
||||||
|
# Issue with Plasma Manager, has to be imported in a special way
|
||||||
|
home-manager.sharedModules = [ plasma-manager.homeManagerModules.plasma-manager ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
server =
|
||||||
|
let
|
||||||
|
user = "administrator";
|
||||||
|
hostName = "server";
|
||||||
|
in
|
||||||
|
lib.nixosSystem {
|
||||||
|
specialArgs = {
|
||||||
|
inherit systemModules;
|
||||||
|
inherit userModules;
|
||||||
|
inherit system;
|
||||||
|
inherit user;
|
||||||
|
inherit hostName;
|
||||||
|
};
|
||||||
|
system = system;
|
||||||
|
# Device specific NixOS Modules
|
||||||
|
modules = systemModules ++ [
|
||||||
|
./hosts/${hostName}
|
||||||
|
./modules/docker
|
||||||
|
./modules/system/syncthing
|
||||||
|
{
|
||||||
|
# Device specific Home Manager Modules
|
||||||
|
home-manager.users.${user}.imports = userModules ++ [
|
||||||
|
];
|
||||||
|
# Issue with Plasma Manager, has to be imported in a special way
|
||||||
|
home-manager.sharedModules = [];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
24
hosts/konsole/default.nix
Normal file
24
hosts/konsole/default.nix
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-partlabel/root";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-partlabel/EFI";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ {
|
||||||
|
device = "/var/lib/swapfile";
|
||||||
|
size = 16*1024;
|
||||||
|
}];
|
||||||
|
}
|
@ -3,7 +3,6 @@
|
|||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
(with pkgs; [
|
(with pkgs; [
|
||||||
ibm-plex
|
ibm-plex
|
||||||
mangohud
|
|
||||||
pciutils
|
pciutils
|
||||||
aha
|
aha
|
||||||
vesktop
|
vesktop
|
||||||
|
8
modules/system/docker/default.nix
Normal file
8
modules/system/docker/default.nix
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{ user, ... }:
|
||||||
|
{
|
||||||
|
virtualisation.docker.enable = true;
|
||||||
|
users.users.${user}.extraGroups = [ "docker" ];
|
||||||
|
virtualisation.docker.daemon.settings = {
|
||||||
|
data-root = "/docker/data-root";
|
||||||
|
};
|
||||||
|
}
|
14
modules/system/jovian-konsole/default.nix
Normal file
14
modules/system/jovian-konsole/default.nix
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{ user, ... }:
|
||||||
|
{
|
||||||
|
jovian.steam = {
|
||||||
|
enable = true;
|
||||||
|
autoStart = true;
|
||||||
|
user = user;
|
||||||
|
desktopSession = "plasma";
|
||||||
|
};
|
||||||
|
jovian.decky-loader.enable = true;
|
||||||
|
jovian.decky-loader.user = user;
|
||||||
|
jovian.hardware.has.amd.gpu = true;
|
||||||
|
jovian.hardware.amd.gpu.enableEarlyModesetting = true;
|
||||||
|
jovian.steamos.enableBluetoothConfig = true;
|
||||||
|
}
|
8
modules/system/retrodeck/default.nix
Normal file
8
modules/system/retrodeck/default.nix
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services.flatpak.enable = true;
|
||||||
|
services.flatpak.update.onActivation = true;
|
||||||
|
services.flatpak.packages = [
|
||||||
|
{ appId = "net.retrodeck.retrodeck"; origin = "flathub"; }
|
||||||
|
];
|
||||||
|
}
|
@ -1,12 +1,27 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
|
systemd.user.services.steam = {
|
||||||
|
enable = true;
|
||||||
|
description = "Open Steam in the background at boot";
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStart = "${pkgs.steam}/bin/steam -nochatui -nofriendsui -silent %U";
|
||||||
|
wantedBy = [ "graphical-session.target" ];
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = "5s";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
dedicatedServer.openFirewall = true;
|
dedicatedServer.openFirewall = true;
|
||||||
localNetworkGameTransfers.openFirewall = true;
|
localNetworkGameTransfers.openFirewall = true;
|
||||||
};
|
};
|
||||||
environment.systemPackages = [
|
environment.systemPackages =
|
||||||
pkgs.gamescope
|
(with pkgs; [
|
||||||
];
|
gamescope
|
||||||
|
mangohud
|
||||||
|
protonup-qt
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{ ... }:
|
{ hostName, ... }:
|
||||||
{
|
{
|
||||||
system.autoUpgrade = {
|
system.autoUpgrade = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dates = "04:00";
|
dates = "04:00";
|
||||||
flake = "github:Moe1369/nixos-config";
|
flake = "github:Moe1369/nixos-config#${hostName}";
|
||||||
flags = [
|
flags = [
|
||||||
"--update-input" "nixpkgs" "--commit-lock-file"
|
"--update-input" "nixpkgs" "-L" "--commit-lock-file"
|
||||||
];
|
];
|
||||||
allowReboot = true;
|
allowReboot = true;
|
||||||
};
|
};
|
||||||
|
@ -1,17 +1,23 @@
|
|||||||
{ user, ... }:
|
{ user, ... }:
|
||||||
{
|
{
|
||||||
|
# Configuration Files
|
||||||
home.file."Code/.directory".source = ../../../dotfiles/directory;
|
home.file."Code/.directory".source = ../../../dotfiles/directory;
|
||||||
home.file.".config/haruna/haruna.conf".source = ../../../dotfiles/haruna.conf;
|
home.file.".config/haruna/haruna.conf".source = ../../../dotfiles/haruna.conf;
|
||||||
home.file.".local/share/color-schemes/BreezeDunkelFarbe.colors".source = ../../../dotfiles/BreezeDunkelFarbe.colors;
|
home.file.".local/share/color-schemes/BreezeDunkelFarbe.colors".source = ../../../dotfiles/BreezeDunkelFarbe.colors;
|
||||||
home.file.".local/share/color-schemes/BreezeHellFarbe.colors".source = ../../../dotfiles/BreezeHellFarbe.colors;
|
home.file.".local/share/color-schemes/BreezeHellFarbe.colors".source = ../../../dotfiles/BreezeHellFarbe.colors;
|
||||||
home.file.".config/kglobalshortcutsrc".source = ../../../dotfiles/kglobalshortcutsrc;
|
home.file.".config/kglobalshortcutsrc".source = ../../../dotfiles/kglobalshortcutsrc;
|
||||||
|
home.file.".config/kwinrulesrc".source = ../../../dotfiles/kwinrulesrc;
|
||||||
|
home.file.".config/kwinrc".source = ../../../dotfiles/kwinrc;
|
||||||
|
home.file.".local/share/user-places.xbel".source = ../../../dotfiles/user-places.xbel;
|
||||||
|
|
||||||
|
# Wallpaper
|
||||||
home.file."Bilder/Wallpaper/wallpaper-nix.png".source = ../../../assets/wallpaper-nix.png;
|
home.file."Bilder/Wallpaper/wallpaper-nix.png".source = ../../../assets/wallpaper-nix.png;
|
||||||
home.file."Bilder/Wallpaper/wallpaper-asia.jpg".source = ../../../assets/wallpaper-asia.jpg;
|
home.file."Bilder/Wallpaper/wallpaper-asia.jpg".source = ../../../assets/wallpaper-asia.jpg;
|
||||||
home.file."Bilder/Wallpaper/wallpaper-kame.jpg".source = ../../../assets/wallpaper-kame.jpg;
|
home.file."Bilder/Wallpaper/wallpaper-kame.jpg".source = ../../../assets/wallpaper-kame.jpg;
|
||||||
home.file."Bilder/Wallpaper/wallpaper-retrogirl.png".source = ../../../assets/wallpaper-retrogirl.png;
|
home.file."Bilder/Wallpaper/wallpaper-retrogirl.png".source = ../../../assets/wallpaper-retrogirl.png;
|
||||||
home.file.".config/kwinrc".source = ../../../dotfiles/kwinrc;
|
home.file."Bilder/Wallpaper/wallpaper-sword.jpg".source = ../../../assets/wallpaper-sword.jpg;
|
||||||
home.file.".local/share/user-places.xbel".source = ../../../dotfiles/user-places.xbel;
|
home.file."Bilder/Wallpaper/wallpaper-clouds.png".source = ../../../assets/wallpaper-clouds.png;
|
||||||
home.file.".zshrc".source = ../../../dotfiles/zshrc;
|
|
||||||
|
|
||||||
|
|
||||||
programs.plasma = {
|
programs.plasma = {
|
||||||
@ -19,7 +25,6 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
workspace.wallpaperSlideShow.path = /home/mo/Bilder/Wallpaper;
|
workspace.wallpaperSlideShow.path = /home/mo/Bilder/Wallpaper;
|
||||||
workspace.wallpaperSlideShow.interval = 864000;
|
workspace.wallpaperSlideShow.interval = 864000;
|
||||||
#workspace.wallpaper = "/home/mo/Bilder/Wallpaper/wallpaper-nix.png";
|
|
||||||
kscreenlocker.appearance.wallpaper = "/home/mo/Bilder/Wallpaper/wallpaper-nix.png";
|
kscreenlocker.appearance.wallpaper = "/home/mo/Bilder/Wallpaper/wallpaper-nix.png";
|
||||||
|
|
||||||
kwin.titlebarButtons.left = ["keep-above-windows"];
|
kwin.titlebarButtons.left = ["keep-above-windows"];
|
||||||
|
4
modules/user/shell/default.nix
Normal file
4
modules/user/shell/default.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
home.file.".zshrc".source = ../../../dotfiles/zshrc;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user