mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
dentritic refactor
This commit is contained in:
140 files changed
+2285
-2622
No files matched your search
@@ -0,0 +1,92 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"ehci_pci"
|
||||
"ahci"
|
||||
"usb_storage"
|
||||
"usbhid"
|
||||
"sd_mod"
|
||||
];
|
||||
boot.initrd.kernelModules = [ "i915" ];
|
||||
boot.kernelModules = [
|
||||
"kvm-intel"
|
||||
"ntsync"
|
||||
"hfsplus"
|
||||
];
|
||||
boot.supportedFilesystems = [
|
||||
"hfsplus"
|
||||
"exfat"
|
||||
];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/7952dca8-005b-444c-a1eb-ecfbb5c053b2";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/mnt/HDD/shared" = {
|
||||
device = "/dev/disk/by-uuid/69F3-C5FB";
|
||||
fsType = "exfat";
|
||||
options = [
|
||||
"defaults"
|
||||
"nofail"
|
||||
"x-systemd.automount"
|
||||
"uid=1000"
|
||||
"gid=100"
|
||||
"umask=022"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems."/mnt/HDD/linuxdata" = {
|
||||
device = "/dev/disk/by-uuid/f7e27b90-ce06-48bb-b579-d93b1398b21f";
|
||||
fsType = "ext4";
|
||||
options = [
|
||||
"defaults"
|
||||
"nofail"
|
||||
"x-systemd.automount"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems."/mnt/macos-hd" = {
|
||||
device = "/dev/disk/by-uuid/4293fd0f-5237-4126-a072-4f2ae6c594dc";
|
||||
fsType = "fuse.apfs-fuse";
|
||||
options = [
|
||||
"ro"
|
||||
"nofail"
|
||||
"allow_other"
|
||||
"uid=1000"
|
||||
"gid=100"
|
||||
"x-systemd.automount"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems."/mnt/macos-data" = {
|
||||
device = "/dev/disk/by-uuid/1ae5a3f4-0aed-4de1-bcba-2976b891c4b1";
|
||||
fsType = "fuse.apfs-fuse";
|
||||
options = [
|
||||
"ro"
|
||||
"nofail"
|
||||
"allow_other"
|
||||
"uid=1000"
|
||||
"gid=100"
|
||||
"x-systemd.automount"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/1B3D-5A7D";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
{ config, inputs, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
in
|
||||
{
|
||||
flake.nixosConfigurations.copland = inputs.nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs system;
|
||||
};
|
||||
|
||||
modules = [
|
||||
{ nixpkgs.hostPlatform = system; }
|
||||
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
inputs.chaotic.nixosModules.default
|
||||
|
||||
{
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nixpkgs.config.permittedInsecurePackages = [ "pnpm-10.29.2" ];
|
||||
nixpkgs.overlays = [ inputs.nix-vscode-extensions.overlays.default ];
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
sharedModules = [ inputs.niri.homeModules.niri ];
|
||||
extraSpecialArgs = {
|
||||
inherit inputs system;
|
||||
};
|
||||
users.elars = {
|
||||
imports = [
|
||||
config.flake.homeModules.home-base
|
||||
config.flake.homeModules.home-ghostty
|
||||
config.flake.homeModules.home-nushell
|
||||
config.flake.homeModules.home-zsh
|
||||
config.flake.homeModules.home-shell-tools
|
||||
config.flake.homeModules.home-session-vars
|
||||
config.flake.homeModules.home-cursor
|
||||
config.flake.homeModules.home-gtk
|
||||
config.flake.homeModules.home-qt
|
||||
config.flake.homeModules.home-mimeapps
|
||||
config.flake.homeModules.home-easyeffects
|
||||
config.flake.homeModules.home-discord
|
||||
config.flake.homeModules.desktop-niri-home
|
||||
config.flake.homeModules.desktop-niri-env
|
||||
config.flake.homeModules.desktop-niri-execs
|
||||
config.flake.homeModules.desktop-niri-general
|
||||
config.flake.homeModules.desktop-niri-keybinds
|
||||
config.flake.homeModules.desktop-niri-rules
|
||||
];
|
||||
home.username = "elars";
|
||||
home.homeDirectory = "/home/elars";
|
||||
home.stateVersion = "25.05";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
config.flake.nixosModules.hostname-assert
|
||||
{ elars.expectedHostName = "copland"; }
|
||||
# pool
|
||||
config.flake.nixosModules.common-boot
|
||||
config.flake.nixosModules.hw-bluetooth
|
||||
config.flake.nixosModules.hw-graphics
|
||||
config.flake.nixosModules.hw-udev
|
||||
config.flake.nixosModules.net-network-manager
|
||||
config.flake.nixosModules.net-vpn
|
||||
config.flake.nixosModules.service-appimage
|
||||
config.flake.nixosModules.service-flatpak
|
||||
config.flake.nixosModules.service-fwupd
|
||||
config.flake.nixosModules.service-kde-connect
|
||||
config.flake.nixosModules.service-ollama
|
||||
config.flake.nixosModules.service-performance
|
||||
config.flake.nixosModules.service-printing
|
||||
config.flake.nixosModules.service-security
|
||||
config.flake.nixosModules.service-ssh
|
||||
config.flake.nixosModules.common-locale
|
||||
config.flake.nixosModules.common-nix
|
||||
config.flake.nixosModules.common-fonts
|
||||
config.flake.nixosModules.common-kmscon
|
||||
config.flake.nixosModules.desktop-display
|
||||
config.flake.nixosModules.desktop-audio
|
||||
config.flake.nixosModules.desktop-niri
|
||||
config.flake.nixosModules.desktop-xdg-mime
|
||||
config.flake.nixosModules.gaming-steam
|
||||
config.flake.nixosModules.gaming-gamemode
|
||||
config.flake.nixosModules.common-users
|
||||
config.flake.nixosModules.service-docker
|
||||
config.flake.nixosModules.service-virt-manager
|
||||
config.flake.nixosModules.common-git
|
||||
config.flake.nixosModules.common-packages
|
||||
# import
|
||||
./copland-hardware.nix
|
||||
{
|
||||
elars.hardware.graphics.driver = "intel";
|
||||
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
memoryPercent = 100;
|
||||
algorithm = "zstd";
|
||||
priority = 100;
|
||||
};
|
||||
|
||||
environment.pathsToLink = [
|
||||
"/share/applications"
|
||||
"/share/icons"
|
||||
"/share/mime"
|
||||
"/share/X11"
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
{ config, inputs, ... }:
|
||||
let
|
||||
system = "x86_64-darwin";
|
||||
in
|
||||
{
|
||||
flake.darwinConfigurations.sohryu-darwin = inputs.nix-darwin.lib.darwinSystem {
|
||||
specialArgs = {
|
||||
inherit inputs system;
|
||||
};
|
||||
|
||||
modules = [
|
||||
{ nixpkgs.hostPlatform = system; }
|
||||
|
||||
inputs.home-manager.darwinModules.home-manager
|
||||
|
||||
{
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nixpkgs.config.allowDeprecatedx86_64Darwin = true;
|
||||
nixpkgs.overlays = [ inputs.nix-vscode-extensions.overlays.default ];
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = {
|
||||
inherit inputs system;
|
||||
};
|
||||
users.sohryu = {
|
||||
imports = [
|
||||
config.flake.homeModules.home-base
|
||||
config.flake.homeModules.home-ghostty
|
||||
config.flake.homeModules.home-nushell
|
||||
];
|
||||
home.username = "sohryu";
|
||||
home.homeDirectory = "/Users/sohryu";
|
||||
home.stateVersion = "25.05";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
config.flake.darwinModules.hostname-assert
|
||||
{ elars.expectedHostName = "sohryu-darwin"; }
|
||||
# pool
|
||||
config.flake.darwinModules.common-git
|
||||
config.flake.darwinModules.common-homebrew
|
||||
config.flake.darwinModules.common-system
|
||||
config.flake.darwinModules.common-user
|
||||
config.flake.darwinModules.common-packages
|
||||
|
||||
# import
|
||||
|
||||
{
|
||||
networking.hostName = "sohryu-darwin";
|
||||
networking.computerName = "sohryu-darwin";
|
||||
system.stateVersion = 5;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user