updates config
This commit is contained in:
parent
8156c9bd85
commit
e72a052384
182 changed files with 47 additions and 10411 deletions
|
|
@ -4,7 +4,7 @@ let
|
|||
in
|
||||
{
|
||||
flake.modules.darwin.system =
|
||||
{ pkgs }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
system = {
|
||||
primaryUser = username;
|
||||
|
|
@ -65,8 +65,8 @@ in
|
|||
security.pam.services.sudo_local.touchIdAuth = true;
|
||||
};
|
||||
|
||||
flake.modules.nixos.system =
|
||||
{ pkgs }:
|
||||
flake.modules.nixos.base =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
|
|
|
|||
36
modules/hosts/dnsc-machine/_hardware-configuration.nix
Normal file
36
modules/hosts/dnsc-machine/_hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
boot.initrd.availableKernelModules = [
|
||||
"nvme"
|
||||
"xhci_pci"
|
||||
"ahci"
|
||||
"usb_storage"
|
||||
"usbhid"
|
||||
"sd_mod"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/30277f94-8b7b-4e91-8438-6815170edfdd";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/4DC9-7AB7";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [ { device = "/dev/disk/by-uuid/9b7564e7-2deb-4432-a4fc-d18d21ef2d11"; } ];
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault true;
|
||||
}
|
||||
|
|
@ -1,11 +1,17 @@
|
|||
{ inputs, config, ... }:
|
||||
|
||||
let
|
||||
hostname = "dnsc-machine";
|
||||
in
|
||||
{
|
||||
flake.nixosConfigurations.dnsc-machine = inputs.nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = with config.flake.modules.nixos; [
|
||||
base
|
||||
dnsc-machine
|
||||
{
|
||||
imports = [ ./_hardware-configuration.nix ];
|
||||
networking.hostName = hostname;
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue