Impreza
This commit is contained in:
parent
a5d2aad596
commit
07c9c08d18
15
flake.nix
15
flake.nix
@ -86,6 +86,21 @@
|
|||||||
};
|
};
|
||||||
modules = [ ./host/Eclipse/configuration.nix ];
|
modules = [ ./host/Eclipse/configuration.nix ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Impreza = nixpkgs.lib.nixosSystem {
|
||||||
|
specialArgs = {
|
||||||
|
pkgs-stable = import nixpkgs-stable {
|
||||||
|
inherit system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
pkgs-fixed = import nixpkgs-fixed {
|
||||||
|
inherit system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
inherit inputs system;
|
||||||
|
};
|
||||||
|
modules = [ ./host/Impreza/configuration.nix ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
devShells."${system}".default = let
|
devShells."${system}".default = let
|
||||||
|
27
host/Impreza/configuration.nix
Normal file
27
host/Impreza/configuration.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{ config, pkgs, pkgs-stable, pkgs-fixed, lib, inputs, ...}: {
|
||||||
|
imports = [
|
||||||
|
./secrets/secrets.nix
|
||||||
|
./modules/grub.nix
|
||||||
|
|
||||||
|
(import ../modules/common.nix {
|
||||||
|
inherit lib;
|
||||||
|
inherit inputs;
|
||||||
|
hostname = "Impreza";
|
||||||
|
})
|
||||||
|
|
||||||
|
(import ../../user/common.nix {
|
||||||
|
inherit config;
|
||||||
|
inherit pkgs;
|
||||||
|
inherit pkgs-stable;
|
||||||
|
inherit pkgs-fixed;
|
||||||
|
inherit lib;
|
||||||
|
inherit inputs;
|
||||||
|
name = "chest";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
nixpkgs.config.allowBroken = true;
|
||||||
|
programs.gamemode.enable = true;
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
host.laptop = true;
|
||||||
|
}
|
44
host/Impreza/hardware-configuration.nix
Normal file
44
host/Impreza/hardware-configuration.nix
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/34e32809-6876-4361-95d8-70a479ea8e19";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/2B65-0D2E";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/mnt/D" = {
|
||||||
|
device = "/dev/disk/by-uuid/E030A4DF30A4BDC2";
|
||||||
|
fsType = "ntfs";
|
||||||
|
options = ["umask=0022" "gid=100" "uid=1002"];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
13
host/Impreza/modules/grub.nix
Normal file
13
host/Impreza/modules/grub.nix
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{ pkgs, ... }: let
|
||||||
|
theme = pkgs.fetchFromGitHub {
|
||||||
|
owner = "OliveThePuffin";
|
||||||
|
repo = "yorha-grub-theme";
|
||||||
|
rev = "4d9cd37baf56c4f5510cc4ff61be278f11077c81";
|
||||||
|
hash = "sha256-XVzYDwJM7Q9DvdF4ZOqayjiYpasUeMhAWWcXtnhJ0WQ=";
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
boot.loader.grub = {
|
||||||
|
gfxmodeEfi = "1920x1080";
|
||||||
|
theme = "${theme}/yorha-1920x1080";
|
||||||
|
};
|
||||||
|
}
|
1
host/Impreza/secrets
Symbolic link
1
host/Impreza/secrets
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../Eclipse/secrets
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
cursor = {
|
cursor = {
|
||||||
name = "catppuccin-mocha-peach-cursors";
|
name = "catppuccin-mocha-peach-cursors";
|
||||||
size = 24;
|
size = 16;
|
||||||
package = pkgs.catppuccin-cursors.mochaPeach;
|
package = pkgs.catppuccin-cursors.mochaPeach;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user