mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-04-19 11:34:07 +02:00
Clean up systms
This commit is contained in:
parent
a80a6a0b1d
commit
ef6b1a72e4
17 changed files with 101 additions and 65 deletions
13
flake.lock
generated
13
flake.lock
generated
|
@ -466,18 +466,6 @@
|
|||
"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": {
|
||||
"inputs": {
|
||||
"flake-compat": [
|
||||
|
@ -532,7 +520,6 @@
|
|||
"nixpkgs-lib": "nixpkgs-lib",
|
||||
"openrgb": "openrgb",
|
||||
"pre-commit-hooks": "pre-commit-hooks_2",
|
||||
"prism-game-options-patch": "prism-game-options-patch",
|
||||
"prismlauncher": "prismlauncher",
|
||||
"tela-icon-theme": "tela-icon-theme"
|
||||
}
|
||||
|
|
|
@ -73,12 +73,6 @@
|
|||
};
|
||||
nix-systems.url = "github:nix-systems/default";
|
||||
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, ... }: {
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
./boot
|
||||
./events
|
||||
./kodi
|
||||
./keyboard
|
||||
./local
|
||||
./minecraft-server
|
||||
./moodle-dl
|
||||
|
|
26
modules/keyboard/default.nix
Normal file
26
modules/keyboard/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -66,7 +66,6 @@ in {
|
|||
];
|
||||
};
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
systemd.services.nix-daemon.serviceConfig.LimitNOFILE = lib.mkForce 1048576000;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
prismlauncher-withExtraStuff = inputs.prismlauncher.packages.${system}.prismlauncher.overrideAttrs (old: {
|
||||
patches = (old.patches or [ ]) ++ [
|
||||
inputs.prism-game-options-patch
|
||||
./prism-ftb.patch
|
||||
];
|
||||
});
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
ssh.enable = true;
|
||||
};
|
||||
|
||||
networking = { hostName = "tuny"; };
|
||||
|
||||
environment.systemPackages = with pkgs; [ mixxx ];
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
|
@ -27,7 +27,6 @@
|
|||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
|
@ -1,20 +1,28 @@
|
|||
{ self, nixpkgs, inputs }:
|
||||
|
||||
let
|
||||
mkSystem = system: name: nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
mkSystem = systemConfig: name: nixpkgs.lib.nixosSystem rec {
|
||||
system = builtins.replaceStrings ["-unknown-" "-gnu"] ["-" ""] systemConfig;
|
||||
specialArgs = inputs;
|
||||
modules = [
|
||||
name
|
||||
./${name}
|
||||
self.outputs.nixosModules.default
|
||||
{
|
||||
system.stateVersion = "24.05";
|
||||
nixpkgs.hostPlatform = {
|
||||
system = system;
|
||||
config = systemConfig;
|
||||
};
|
||||
networking.hostName = name;
|
||||
}
|
||||
];
|
||||
};
|
||||
in
|
||||
{
|
||||
kami = mkSystem "x86_64-linux" ./kami;
|
||||
yokai = mkSystem "aarch64-linux" ./yokai;
|
||||
inugami = mkSystem "aarch64-linux" ./inugami;
|
||||
tuny = mkSystem "x86_64-linux" ./tuny;
|
||||
installer = mkSystem "x86_64-linux" ./installer;
|
||||
steamdeck = mkSystem "x86_64-linux" ./steamdeck;
|
||||
kuraokami = mkSystem "x86_64-unknown-linux-gnu" "kuraokami";
|
||||
jurojin = mkSystem "aarch64-unknown-linux-gnu" "jurojin";
|
||||
sukuna-biko-na = mkSystem "aarch64-unknown-linux-gnu" "sukuna-biko-na";
|
||||
benzaiten = mkSystem "x86_64-unknown-linux-gnu" "benzaiten";
|
||||
kamimusubi = mkSystem "x86_64-unknown-linux-gnu" "kamimusubi";
|
||||
ebisu = mkSystem "x86_64-unknown-linux-gnu" "ebisu";
|
||||
}
|
||||
|
|
21
systems/ebisu/default.nix
Normal file
21
systems/ebisu/default.nix
Normal 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";
|
||||
}
|
32
systems/ebisu/hardware-configuration.nix
Normal file
32
systems/ebisu/hardware-configuration.nix
Normal 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;
|
||||
}
|
|
@ -21,7 +21,6 @@
|
|||
};
|
||||
|
||||
networking = {
|
||||
hostName = "yokai";
|
||||
hostId = "af13bbec";
|
||||
};
|
||||
|
||||
|
@ -50,11 +49,6 @@
|
|||
};
|
||||
services.xserver = { layout = "us"; };
|
||||
|
||||
nixpkgs.hostPlatform = {
|
||||
system = "aarch64-linux";
|
||||
config = "aarch64-unknown-linux-gnu";
|
||||
};
|
||||
|
||||
boot = {
|
||||
supportedFilesystems = [ "ntfs" "btrfs" "zfs" ];
|
||||
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
|
@ -32,7 +32,6 @@
|
|||
# networking.interfaces.enp6s0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
||||
|
||||
#nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
}
|
|
@ -17,17 +17,9 @@
|
|||
};
|
||||
|
||||
networking = {
|
||||
hostName = "installer";
|
||||
wireless.enable = lib.mkForce false;
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
hostPlatform = {
|
||||
system = "x86_64-linux";
|
||||
config = "x86_64-unknown-linux-gnu";
|
||||
};
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
|
|
@ -27,6 +27,10 @@
|
|||
sway.enable = true;
|
||||
minecraft-server.enable = true;
|
||||
repo-sync.enable = true;
|
||||
keyboard = {
|
||||
enable = true;
|
||||
layout = "de";
|
||||
};
|
||||
user = {
|
||||
jopejoe1.enable = true;
|
||||
root.enable = true;
|
||||
|
@ -35,7 +39,6 @@
|
|||
};
|
||||
|
||||
networking = {
|
||||
hostName = "kami";
|
||||
hostId = "16c22faf";
|
||||
};
|
||||
|
||||
|
@ -44,11 +47,6 @@
|
|||
enable = true;
|
||||
motherboard = "intel";
|
||||
};
|
||||
fwupd.enable = true;
|
||||
xserver = {
|
||||
videoDrivers = [ "nvidia" ];
|
||||
layout = "de";
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
|
@ -57,8 +55,6 @@
|
|||
cudaCapabilities = [ "8.6" ];
|
||||
};
|
||||
hostPlatform = {
|
||||
system = "x86_64-linux";
|
||||
config = "x86_64-unknown-linux-gnu";
|
||||
# gcc.arch = "alderlake";
|
||||
};
|
||||
};
|
||||
|
@ -105,10 +101,6 @@
|
|||
kdeconnect.enable = true;
|
||||
gamemode.enable = true;
|
||||
};
|
||||
console = {
|
||||
enable = true;
|
||||
keyMap = "de";
|
||||
};
|
||||
|
||||
nix.settings.system-features = [ "gccarch-alderlake" "benchmark" "big-parallel" "kvm" "nixos-test" ];
|
||||
}
|
|
@ -37,10 +37,5 @@
|
|||
useDHCP = lib.mkDefault true;
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = {
|
||||
system = "aarch64-linux";
|
||||
config = "aarch64-unknown-linux-gnu";
|
||||
};
|
||||
|
||||
powerManagement.cpuFreqGovernor = "ondemand";
|
||||
}
|
Loading…
Add table
Reference in a new issue