Skip to content
Snippets Groups Projects
Commit 2f326e3a authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman :boom:
Browse files

Added neoteric computer

parent f87eb30a
No related branches found
No related tags found
No related merge requests found
{config, pkgs, lib, inputs, modulesPath, flake, ...}:
{
config.desktop.enable = true;
config.desktop.default_session = "sway";
config.desktop.dm_use_wayland = true;
config.laptop.enable = true;
config.screens.primary = "eDP-1";
config.screens.primary_orientation = "normal";
config.screens.primary_pos = "0 0 res 1920x1080";
config.screens.secondary = "DP-3";
config.screens.secondary_orientation = "normal";
config.screens.secondary_pos = "0 1080 res 1920x515";
config.screens.has_secondary = true;
config.swaybar.font_size = 11.0;
config.sway.inner_gap = 10;
config.sway.outer_gap = 10;
imports = [
../common.nix
../../users/myself/freemo
../../pkgs/desktop
../../pkgs/lib
../../pkgs/security
../../pkgs/dev
../../pkgs/editor
../../pkgs/web_browser
../../pkgs/terminal
../../pkgs/shell
../../pkgs/util
../../pkgs/communication
../../pkgs/multimedia
../../pkgs/gaming
../../pkgs/disk
../../pkgs/database
../../pkgs/social_media
../../pkgs/virtualisation
../../pkgs/productivity
../../pkgs/multimedia/stylix
];
}
{config, pkgs, lib, inputs, modulesPath, flake, ...}:
{
imports = [
./config.nix
../../pkgs/hardware/location/philadelphia
../../pkgs/hardware/locale/en_us
../../pkgs/hardware/common
#../../pkgs/hardware/common/asus-zenbook-duo
../../pkgs/hardware/common/laptop
../../pkgs/hardware/common/touchpad-disable-tap
#../../pkgs/hardware/common/nvidia_proprietary
];
networking.hostName = "neoteric";
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "vmd" "nvme" "uas" "sd_mod" "rtsx_usb_sdmmc" "usbhid" "usb_storage" ];
boot.initrd.kernelModules = [ "dm-snapshot" "vfat" "nls_cp437" "nls_iso8859-1" "usbhid" ];
boot.kernelModules = [ "kvm-amd" "v4l2loopback" ];
boot.extraModulePackages = with pkgs; [ config.boot.kernelPackages.v4l2loopback.out ];
boot.kernelParams = [ "nomodeset" ]
# Setup keyfile
boot.initrd.secrets = {
"/crypto_keyfile.bin" = null;
};
fileSystems."/" =
{
device = "/dev/mapper/vg_main-root";
fsType = "btrfs";
options = [ "subvol=root" ];
};
fileSystems."/home" =
{
device = "/dev/mapper/vg_main-root";
fsType = "btrfs";
options = [ "subvol=home" ];
};
fileSystems."/boot/efi" =
{
device = "/dev/disk/by-uuid/509A-6D78";
fsType = "vfat";
};
swapDevices =
[
{ device = "/dev/mapper/vg_main-swap"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
system.stateVersion = "23.11";
boot.initrd.luks = {
# Support for Yubikey PBA
yubikeySupport = true;
devices."pv_main" = {
device = "/dev/disk/by-uuid/d4100943-c355-4e4a-9d7a-bea1ef7afee8"; # nvme0n1p2
preLVM = true; # You may want to set this to false if you need to start a network service first
yubikey = {
slot = 2;
twoFactor = true; # Set to false for 1FA
#gracePeriod = 30; # Time in seconds to wait for Yubikey to be inserted
keyLength = 64; # Set to $KEY_LENGTH/8
saltLength = 16; # Set to $SALT_LENGTH
storage = {
device = "/dev/disk/by-uuid/509A-6D78"; #nvme0n1p1
fsType = "vfat";
path = "/crypt-storage/default";
};
};
};
};
#fixes secondary screen turning off when lid shut
services.logind.extraConfig = ''
LidSwitchIgnoreInhibited=yes
'';
services.upower.ignoreLid = true;
}
......@@ -76,30 +76,6 @@
./config/envy
];
};
hyperion = self.lib.mkLinuxSystem {
imports = [
#stylix.nixosModules.stylix
self.nixosModules.home-manager
inputs.agenix.nixosModules.default
./config/hyperion
];
};
macaria = self.lib.mkLinuxSystem {
imports = [
#stylix.nixosModules.stylix
self.nixosModules.home-manager
inputs.agenix.nixosModules.default
./config/macaria
];
};
ramos = self.lib.mkLinuxSystem {
imports = [
#stylix.nixosModules.stylix
self.nixosModules.home-manager
inputs.agenix.nixosModules.default
./config/ramos
];
};
hermes = self.lib.mkLinuxSystem {
imports = [
#stylix.nixosModules.stylix
......@@ -108,20 +84,12 @@
./config/hermes
];
};
dolly = self.lib.mkLinuxSystem {
imports = [
#stylix.nixosModules.stylix
self.nixosModules.home-manager
inputs.agenix.nixosModules.default
./config/dolly
];
};
kinnara = self.lib.mkLinuxSystem {
neoteric = self.lib.mkLinuxSystem {
imports = [
#stylix.nixosModules.stylix
self.nixosModules.home-manager
inputs.agenix.nixosModules.default
./config/kinnara
./config/neoteric
];
};
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment