Clean up systms

This commit is contained in:
jopejoe1 2024-01-15 19:56:37 +01:00
parent a80a6a0b1d
commit ef6b1a72e4
17 changed files with 101 additions and 65 deletions

13
flake.lock generated
View file

@ -466,18 +466,6 @@
"type": "github" "type": "github"
} }
}, },
"prism-game-options-patch": {
"flake": false,
"locked": {
"narHash": "sha256-Susj3gS7Xa0dTZh9g6NPzlTE6gi0ncI2m84HCrBP3gQ=",
"type": "file",
"url": "https://patch-diff.githubusercontent.com/raw/PrismLauncher/PrismLauncher/pull/907.patch"
},
"original": {
"type": "file",
"url": "https://patch-diff.githubusercontent.com/raw/PrismLauncher/PrismLauncher/pull/907.patch"
}
},
"prismlauncher": { "prismlauncher": {
"inputs": { "inputs": {
"flake-compat": [ "flake-compat": [
@ -532,7 +520,6 @@
"nixpkgs-lib": "nixpkgs-lib", "nixpkgs-lib": "nixpkgs-lib",
"openrgb": "openrgb", "openrgb": "openrgb",
"pre-commit-hooks": "pre-commit-hooks_2", "pre-commit-hooks": "pre-commit-hooks_2",
"prism-game-options-patch": "prism-game-options-patch",
"prismlauncher": "prismlauncher", "prismlauncher": "prismlauncher",
"tela-icon-theme": "tela-icon-theme" "tela-icon-theme": "tela-icon-theme"
} }

View file

@ -73,12 +73,6 @@
}; };
nix-systems.url = "github:nix-systems/default"; nix-systems.url = "github:nix-systems/default";
nix-filter.url = "github:numtide/nix-filter"; nix-filter.url = "github:numtide/nix-filter";
# Patches
prism-game-options-patch = {
url = "https://patch-diff.githubusercontent.com/raw/PrismLauncher/PrismLauncher/pull/907.patch";
flake = false;
};
}; };
outputs = inputs@{ self, nixpkgs, ... }: { outputs = inputs@{ self, nixpkgs, ... }: {

View file

@ -9,6 +9,7 @@
./boot ./boot
./events ./events
./kodi ./kodi
./keyboard
./local ./local
./minecraft-server ./minecraft-server
./moodle-dl ./moodle-dl

View file

@ -0,0 +1,26 @@
{ config, lib, pkgs, ... }:
let cfg = config.jopejoe1.keyboard;
in {
options.jopejoe1.keyboard = {
enable = lib.mkEnableOption "Enable Keyboard";
layout = lib.mkOption {
type = lib.types.str;
default = "us";
description = lib.mdDoc "Keyboard Layout.";
};
};
config = lib.mkIf cfg.enable {
services = {
xserver = {
layout = cfg.layout;
};
};
console = {
enable = true;
keyMap = "de";
};
};
}

View file

@ -66,7 +66,6 @@ in {
]; ];
}; };
system.stateVersion = "24.05";
systemd.services.nix-daemon.serviceConfig.LimitNOFILE = lib.mkForce 1048576000; systemd.services.nix-daemon.serviceConfig.LimitNOFILE = lib.mkForce 1048576000;
}; };
} }

View file

@ -16,7 +16,6 @@
prismlauncher-withExtraStuff = inputs.prismlauncher.packages.${system}.prismlauncher.overrideAttrs (old: { prismlauncher-withExtraStuff = inputs.prismlauncher.packages.${system}.prismlauncher.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [ patches = (old.patches or [ ]) ++ [
inputs.prism-game-options-patch
./prism-ftb.patch ./prism-ftb.patch
]; ];
}); });

View file

@ -22,8 +22,6 @@
ssh.enable = true; ssh.enable = true;
}; };
networking = { hostName = "tuny"; };
environment.systemPackages = with pkgs; [ mixxx ]; environment.systemPackages = with pkgs; [ mixxx ];
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";

View file

@ -27,7 +27,6 @@
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware; lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

View file

@ -1,20 +1,28 @@
{ self, nixpkgs, inputs }: { self, nixpkgs, inputs }:
let let
mkSystem = system: name: nixpkgs.lib.nixosSystem { mkSystem = systemConfig: name: nixpkgs.lib.nixosSystem rec {
inherit system; system = builtins.replaceStrings ["-unknown-" "-gnu"] ["-" ""] systemConfig;
specialArgs = inputs; specialArgs = inputs;
modules = [ modules = [
name ./${name}
self.outputs.nixosModules.default self.outputs.nixosModules.default
{
system.stateVersion = "24.05";
nixpkgs.hostPlatform = {
system = system;
config = systemConfig;
};
networking.hostName = name;
}
]; ];
}; };
in in
{ {
kami = mkSystem "x86_64-linux" ./kami; kuraokami = mkSystem "x86_64-unknown-linux-gnu" "kuraokami";
yokai = mkSystem "aarch64-linux" ./yokai; jurojin = mkSystem "aarch64-unknown-linux-gnu" "jurojin";
inugami = mkSystem "aarch64-linux" ./inugami; sukuna-biko-na = mkSystem "aarch64-unknown-linux-gnu" "sukuna-biko-na";
tuny = mkSystem "x86_64-linux" ./tuny; benzaiten = mkSystem "x86_64-unknown-linux-gnu" "benzaiten";
installer = mkSystem "x86_64-linux" ./installer; kamimusubi = mkSystem "x86_64-unknown-linux-gnu" "kamimusubi";
steamdeck = mkSystem "x86_64-linux" ./steamdeck; ebisu = mkSystem "x86_64-unknown-linux-gnu" "ebisu";
} }

21
systems/ebisu/default.nix Normal file
View file

@ -0,0 +1,21 @@
{ pkgs }:
{
jopejoe1 = {
audio = { enable = true; };
bluetooth.enable = true;
local.enable = true;
nix.enable = true;
user = {
jopejoe1.enable = true;
root.enable = true;
};
boot.systemd.enable = true;
};
environment.systemPackages = with pkgs; [ moonlight-qt ];
time.timeZone = "Europe/Berlin";
}

View file

@ -0,0 +1,32 @@
{ config, lib, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ehci_pci"
"ahci"
"usb_storage"
"sd_mod"
"sr_mod"
"sdhci_pci"
"rtsx_pci_sdmmc"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/1cae8f88-5db6-4c97-88e4-350c35275d5c";
fsType = "ext4";
};
swapDevices =
[{ device = "/dev/disk/by-uuid/8569ee66-b939-4ce8-a94a-dca7df5e301b"; }];
networking.useDHCP = lib.mkDefault true;
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -21,7 +21,6 @@
}; };
networking = { networking = {
hostName = "yokai";
hostId = "af13bbec"; hostId = "af13bbec";
}; };
@ -50,11 +49,6 @@
}; };
services.xserver = { layout = "us"; }; services.xserver = { layout = "us"; };
nixpkgs.hostPlatform = {
system = "aarch64-linux";
config = "aarch64-unknown-linux-gnu";
};
boot = { boot = {
supportedFilesystems = [ "ntfs" "btrfs" "zfs" ]; supportedFilesystems = [ "ntfs" "btrfs" "zfs" ];
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;

View file

@ -32,7 +32,6 @@
# networking.interfaces.enp6s0.useDHCP = lib.mkDefault true; # networking.interfaces.enp6s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true; # networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
#nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;
} }

View file

@ -17,17 +17,9 @@
}; };
networking = { networking = {
hostName = "installer";
wireless.enable = lib.mkForce false; wireless.enable = lib.mkForce false;
}; };
nixpkgs = {
hostPlatform = {
system = "x86_64-linux";
config = "x86_64-unknown-linux-gnu";
};
};
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";

View file

@ -27,6 +27,10 @@
sway.enable = true; sway.enable = true;
minecraft-server.enable = true; minecraft-server.enable = true;
repo-sync.enable = true; repo-sync.enable = true;
keyboard = {
enable = true;
layout = "de";
};
user = { user = {
jopejoe1.enable = true; jopejoe1.enable = true;
root.enable = true; root.enable = true;
@ -35,7 +39,6 @@
}; };
networking = { networking = {
hostName = "kami";
hostId = "16c22faf"; hostId = "16c22faf";
}; };
@ -44,11 +47,6 @@
enable = true; enable = true;
motherboard = "intel"; motherboard = "intel";
}; };
fwupd.enable = true;
xserver = {
videoDrivers = [ "nvidia" ];
layout = "de";
};
}; };
nixpkgs = { nixpkgs = {
@ -57,8 +55,6 @@
cudaCapabilities = [ "8.6" ]; cudaCapabilities = [ "8.6" ];
}; };
hostPlatform = { hostPlatform = {
system = "x86_64-linux";
config = "x86_64-unknown-linux-gnu";
# gcc.arch = "alderlake"; # gcc.arch = "alderlake";
}; };
}; };
@ -105,10 +101,6 @@
kdeconnect.enable = true; kdeconnect.enable = true;
gamemode.enable = true; gamemode.enable = true;
}; };
console = {
enable = true;
keyMap = "de";
};
nix.settings.system-features = [ "gccarch-alderlake" "benchmark" "big-parallel" "kvm" "nixos-test" ]; nix.settings.system-features = [ "gccarch-alderlake" "benchmark" "big-parallel" "kvm" "nixos-test" ];
} }

View file

@ -37,10 +37,5 @@
useDHCP = lib.mkDefault true; useDHCP = lib.mkDefault true;
}; };
nixpkgs.hostPlatform = {
system = "aarch64-linux";
config = "aarch64-unknown-linux-gnu";
};
powerManagement.cpuFreqGovernor = "ondemand"; powerManagement.cpuFreqGovernor = "ondemand";
} }