Added Bellerophon
This commit is contained in:
46
flake.nix
46
flake.nix
@@ -116,6 +116,52 @@
|
||||
];
|
||||
};
|
||||
|
||||
Bellerophon = nixpkgs.lib.nixosSystem {
|
||||
# System
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
inherit system;
|
||||
};
|
||||
|
||||
# Modules
|
||||
modules = [
|
||||
#kde2nix Module
|
||||
#inputs.kde2nix.nixosModules.default
|
||||
|
||||
# NUR Modules
|
||||
nur.nixosModules.nur
|
||||
|
||||
# Theme Modules
|
||||
stylix.nixosModules.stylix
|
||||
./themes/targets/all.nix
|
||||
./themes/dracula
|
||||
|
||||
# Host Module
|
||||
./hosts/Bellerophon
|
||||
|
||||
# Home Manager Modules
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
inherit system;
|
||||
};
|
||||
home-manager.users.panotaka = {
|
||||
imports = [
|
||||
nur.hmModules.nur
|
||||
./home
|
||||
./home/shell
|
||||
./home/applications
|
||||
./home/desktops/kde
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
Blackbird = nixpkgs.lib.nixosSystem {
|
||||
# System
|
||||
system = "x86_64-linux";
|
||||
|
||||
@@ -219,8 +219,8 @@ merge
|
||||
"ms-python"."python" = vscode-utils.extensionFromVscodeMarketplace {
|
||||
name = "python";
|
||||
publisher = "ms-python";
|
||||
version = "2024.17.2024102101";
|
||||
sha256 = "0kz8b8g25vbh0i4kp7nl0bsr4a63gfy9v4d8v3ih51670wc9iqsc";
|
||||
version = "2024.17.2024102201";
|
||||
sha256 = "0z1850zbbzxkyv49486jy7wfwavih7ik97jpv3pw5bhg7lcx8xni";
|
||||
arch = "linux-x64";
|
||||
};
|
||||
"ms-toolsai"."jupyter" = vscode-utils.extensionFromVscodeMarketplace {
|
||||
@@ -249,8 +249,8 @@ merge
|
||||
"ms-python"."python" = vscode-utils.extensionFromVscodeMarketplace {
|
||||
name = "python";
|
||||
publisher = "ms-python";
|
||||
version = "2024.17.2024102101";
|
||||
sha256 = "1dja7dnnks0azzqblvn0ybb1b8qyzig4vznsblh8d74ac14rqv0j";
|
||||
version = "2024.17.2024102201";
|
||||
sha256 = "1smqmi3jqzb2ckcqflxhxi3nqlfbjhk3kksxrk6lmyj066hdsjvc";
|
||||
arch = "linux-arm64";
|
||||
};
|
||||
"ms-toolsai"."jupyter" = vscode-utils.extensionFromVscodeMarketplace {
|
||||
@@ -279,8 +279,8 @@ merge
|
||||
"ms-python"."python" = vscode-utils.extensionFromVscodeMarketplace {
|
||||
name = "python";
|
||||
publisher = "ms-python";
|
||||
version = "2024.17.2024102101";
|
||||
sha256 = "1cy7rk6m4rc8wgjiw93j0c5kycpgxkzvkph1x8cqgd62gpdr1mm5";
|
||||
version = "2024.17.2024102201";
|
||||
sha256 = "1mr0csgq8b4vc6hvlpgrggnb611mnq3m8zadyf67rh9mcwxrjiq2";
|
||||
arch = "darwin-x64";
|
||||
};
|
||||
"ms-toolsai"."jupyter" = vscode-utils.extensionFromVscodeMarketplace {
|
||||
@@ -309,8 +309,8 @@ merge
|
||||
"ms-python"."python" = vscode-utils.extensionFromVscodeMarketplace {
|
||||
name = "python";
|
||||
publisher = "ms-python";
|
||||
version = "2024.17.2024102101";
|
||||
sha256 = "0xh567bfz1qipdan8f2dby1s9rgw6jxv4gi13vphd39wyk0388qh";
|
||||
version = "2024.17.2024102201";
|
||||
sha256 = "07xhnifvzj97v2j40ik60lxlhpys4c0igrd0x8h39n16v0z18s5a";
|
||||
arch = "darwin-arm64";
|
||||
};
|
||||
"ms-toolsai"."jupyter" = vscode-utils.extensionFromVscodeMarketplace {
|
||||
|
||||
87
hosts/Bellerophon/default.nix
Normal file
87
hosts/Bellerophon/default.nix
Normal file
@@ -0,0 +1,87 @@
|
||||
{
|
||||
lib,
|
||||
disko,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
hostname = "Bellerophon";
|
||||
in {
|
||||
# System version
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
imports = [
|
||||
# Import hardware configuration
|
||||
inputs.disko.nixosModules.disko
|
||||
./disko.nix
|
||||
|
||||
# Import system configuration
|
||||
../../modules/system.nix
|
||||
../../modules/containers.nix
|
||||
../../modules/virtualization.nix
|
||||
../../modules/harden.nix
|
||||
../../modules/kde.nix
|
||||
];
|
||||
|
||||
hardware.nvidia.open = false;
|
||||
|
||||
# Set networking
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
networking.hostName = hostname;
|
||||
networking.networkmanager.enable = true;
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
|
||||
# Bootloader configuration
|
||||
boot = {
|
||||
kernelModules = ["kvm-intel"];
|
||||
extraModulePackages = [];
|
||||
|
||||
initrd = {
|
||||
kernelModules = [];
|
||||
availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"thunderbolt"
|
||||
"vmd"
|
||||
"nvme"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
"rtsx_pci_sdmmc"
|
||||
];
|
||||
};
|
||||
|
||||
loader = {
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
configurationLimit = 5;
|
||||
};
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Setup Audio
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
wireplumber.extraConfig."10-disable-camera" = {
|
||||
"wireplumber.profiles" = {
|
||||
main = {
|
||||
"monitor.libcamera" = "disabled";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Setup bluetooth
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
# Add OpenGl support
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
}
|
||||
59
hosts/Bellerophon/disko.nix
Normal file
59
hosts/Bellerophon/disko.nix
Normal file
@@ -0,0 +1,59 @@
|
||||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
nvme0n1 = {
|
||||
type = "disk";
|
||||
device = "/dev/nvme0n1";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
ESP = {
|
||||
size = "512M";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
mountOptions = [
|
||||
"defaults"
|
||||
];
|
||||
};
|
||||
};
|
||||
luks = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "luks";
|
||||
name = "crypted";
|
||||
settings = {
|
||||
allowDiscards = true;
|
||||
};
|
||||
content = {
|
||||
type = "btrfs";
|
||||
extraArgs = ["-f"];
|
||||
subvolumes = {
|
||||
"/root" = {
|
||||
mountpoint = "/";
|
||||
mountOptions = ["compress=zstd" "noatime"];
|
||||
};
|
||||
"/home" = {
|
||||
mountpoint = "/home";
|
||||
mountOptions = ["compress=zstd" "noatime"];
|
||||
};
|
||||
"/nix" = {
|
||||
mountpoint = "/nix";
|
||||
mountOptions = ["compress=zstd" "noatime"];
|
||||
};
|
||||
"/swap" = {
|
||||
mountpoint = "/.swapvol";
|
||||
swap.swapfile.size = "40G";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Submodule scripts/nix4vscode updated: ae9e1f04cd...e0073075b8
Reference in New Issue
Block a user