This commit is contained in:
Mohamed Chrayed 2024-08-26 08:11:33 +02:00
commit e86913e0f6
25 changed files with 229 additions and 13 deletions

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

View File

@ -0,0 +1,4 @@
{ ... }:
{
}

View File

@ -0,0 +1,4 @@
{ ... }:
{
}

View File

@ -0,0 +1,4 @@
{ ... }:
{
}

View File

@ -0,0 +1,4 @@
{ ... }:
{
}

View File

@ -0,0 +1,4 @@
{ ... }:
{
}

View File

@ -0,0 +1,4 @@
{ ... }:
{
}

View File

@ -0,0 +1,4 @@
{ ... }:
{
}

View File

@ -0,0 +1,4 @@
{ ... }:
{
}

View File

@ -0,0 +1,4 @@
{ ... }:
{
}

View File

@ -0,0 +1,4 @@
{ ... }:
{
}

View File

@ -0,0 +1,4 @@
{ ... }:
{
}

View File

@ -0,0 +1,4 @@
{ ... }:
{
}

15
dotfiles/kwinrulesrc Normal file
View 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

View File

@ -13,6 +13,7 @@
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.4.1";
};
# Define Outputs, import Modules
outputs =
@ -21,6 +22,7 @@
home-manager,
jovian,
plasma-manager,
nix-flatpak,
...
}:
let
@ -31,6 +33,7 @@
# NixOS Modules for all hosts
systemModules = [
home-manager.nixosModules.home-manager
nix-flatpak.nixosModules.nix-flatpak
./modules/system/apps-shell
./modules/system/boot
./modules/system/devices
@ -39,7 +42,6 @@
./modules/system/networking
./modules/system/nixsettings
./modules/system/shell
./modules/system/syncthing
./modules/system/systemversion
./modules/system/upgrades
./modules/system/users
@ -48,6 +50,7 @@
userModules = [
./modules/user/git
./modules/user/homeversion
./modules/user/shell
];
in
{
@ -77,9 +80,11 @@
./modules/system/controller
./modules/system/jovian-${hostName}
./modules/system/lact
./modules/system/sddm
./modules/system/plasma
./modules/system/retrodeck
./modules/system/steam
./modules/system/syncthing
./modules/system/sddm
{
# Device specific Home Manager Modules
home-manager.users.${user}.imports = userModules ++ [
@ -117,7 +122,9 @@
./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 ++ [
@ -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
View 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;
}];
}

View File

@ -3,7 +3,6 @@
environment.systemPackages =
(with pkgs; [
ibm-plex
mangohud
pciutils
aha
vesktop

View File

@ -0,0 +1,8 @@
{ user, ... }:
{
virtualisation.docker.enable = true;
users.users.${user}.extraGroups = [ "docker" ];
virtualisation.docker.daemon.settings = {
data-root = "/docker/data-root";
};
}

View 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;
}

View File

@ -0,0 +1,8 @@
{ ... }:
{
services.flatpak.enable = true;
services.flatpak.update.onActivation = true;
services.flatpak.packages = [
{ appId = "net.retrodeck.retrodeck"; origin = "flathub"; }
];
}

View File

@ -1,12 +1,27 @@
{ 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 = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
};
environment.systemPackages = [
pkgs.gamescope
];
environment.systemPackages =
(with pkgs; [
gamescope
mangohud
protonup-qt
]);
}

View File

@ -1,11 +1,11 @@
{ ... }:
{ hostName, ... }:
{
system.autoUpgrade = {
enable = true;
dates = "04:00";
flake = "github:Moe1369/nixos-config";
flake = "github:Moe1369/nixos-config#${hostName}";
flags = [
"--update-input" "nixpkgs" "--commit-lock-file"
"--update-input" "nixpkgs" "-L" "--commit-lock-file"
];
allowReboot = true;
};

View File

@ -1,17 +1,23 @@
{ user, ... }:
{
# Configuration Files
home.file."Code/.directory".source = ../../../dotfiles/directory;
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/BreezeHellFarbe.colors".source = ../../../dotfiles/BreezeHellFarbe.colors;
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-asia.jpg".source = ../../../assets/wallpaper-asia.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.".config/kwinrc".source = ../../../dotfiles/kwinrc;
home.file.".local/share/user-places.xbel".source = ../../../dotfiles/user-places.xbel;
home.file.".zshrc".source = ../../../dotfiles/zshrc;
home.file."Bilder/Wallpaper/wallpaper-sword.jpg".source = ../../../assets/wallpaper-sword.jpg;
home.file."Bilder/Wallpaper/wallpaper-clouds.png".source = ../../../assets/wallpaper-clouds.png;
programs.plasma = {
@ -19,7 +25,6 @@
enable = true;
workspace.wallpaperSlideShow.path = /home/mo/Bilder/Wallpaper;
workspace.wallpaperSlideShow.interval = 864000;
#workspace.wallpaper = "/home/mo/Bilder/Wallpaper/wallpaper-nix.png";
kscreenlocker.appearance.wallpaper = "/home/mo/Bilder/Wallpaper/wallpaper-nix.png";
kwin.titlebarButtons.left = ["keep-above-windows"];

View File

@ -0,0 +1,4 @@
{ ... }:
{
home.file.".zshrc".source = ../../../dotfiles/zshrc;
}