init hebesu
This commit is contained in:
parent
2a4316b08a
commit
c272eaf158
21
hosts/hebesu/default.nix
Normal file
21
hosts/hebesu/default.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{...}: {
|
||||||
|
imports = [
|
||||||
|
../../system
|
||||||
|
./hardware-configuration.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
networking.hostName = "hebesu";
|
||||||
|
services.tzupdate.enable = true;
|
||||||
|
services.xserver = {
|
||||||
|
videoDrivers = ["modesetting"];
|
||||||
|
deviceSection = ''
|
||||||
|
Option "DRI" "2"
|
||||||
|
Option "TearFree" "true"
|
||||||
|
'';
|
||||||
|
xkb.options = "ctrl:nocaps";
|
||||||
|
};
|
||||||
|
users.users.ahnwuoa = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = ["wheel" "podman"];
|
||||||
|
};
|
||||||
|
}
|
||||||
48
hosts/hebesu/hardware-configuration.nix
Normal file
48
hosts/hebesu/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
# 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 = [ "nvme" "xhci_pci" "usbhid" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/e9de5286-c8b1-4629-be01-f052c34b4062";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/home" =
|
||||||
|
{ device = "/dev/disk/by-uuid/aa592b0f-13bd-4ae6-af3f-68a8f76f65ae";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.initrd.luks.devices."drive".device = "/dev/disk/by-uuid/60d5cc58-4381-4869-a1b5-d4e2bf1afdfd";
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/F0F5-744F";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices =
|
||||||
|
[ { device = "/dev/disk/by-uuid/2d015dcd-81a0-4d81-b530-5ea96aa0d953"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
# 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.enp1s0.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
12
hosts/hebesu/users/ahnwuoa/default.nix
Normal file
12
hosts/hebesu/users/ahnwuoa/default.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
../../../../user
|
||||||
|
];
|
||||||
|
|
||||||
|
home.username = "ahnwuoa";
|
||||||
|
xresources.properties."Xft.dpi" = 120;
|
||||||
|
}
|
||||||
|
|
@ -62,6 +62,8 @@
|
||||||
alejandra
|
alejandra
|
||||||
ffmpeg
|
ffmpeg
|
||||||
ffsubsync
|
ffsubsync
|
||||||
|
unzip
|
||||||
|
unar
|
||||||
|
|
||||||
(python312.withPackages (python-pkgs: [
|
(python312.withPackages (python-pkgs: [
|
||||||
python-pkgs.pwntools
|
python-pkgs.pwntools
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue