mirror of
https://github.com/ivabus/nixos
synced 2024-11-28 11:05:10 +03:00
add vetus conf
This commit is contained in:
parent
e5a3158d2e
commit
39b9dfb497
4 changed files with 73 additions and 12 deletions
33
flake.nix
33
flake.nix
|
@ -24,6 +24,7 @@
|
|||
./common/locale.nix
|
||||
./common/remote-access.nix
|
||||
./roles/graphical.nix
|
||||
./roles/latex.nix
|
||||
#./roles/gaming.nix
|
||||
./roles/devel.nix
|
||||
./roles/yggdrasil-client.nix
|
||||
|
@ -32,6 +33,26 @@
|
|||
];
|
||||
};
|
||||
|
||||
# Vetus = iMac 27" 2017, i5, 64 GB RAM
|
||||
nixosConfigurations."vetus" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
home-manager.nixosModules.home-manager
|
||||
./common/base.nix
|
||||
./common/user.nix
|
||||
./common/laptop.nix
|
||||
./common/networking.nix
|
||||
./common/locale.nix
|
||||
./common/remote-access.nix
|
||||
./roles/graphical.nix
|
||||
./roles/latex.nix
|
||||
#./roles/gaming.nix
|
||||
./roles/devel.nix
|
||||
./roles/yggdrasil-client.nix
|
||||
./machines/vetus/configuration.nix
|
||||
./machines/vetus/hardware.nix
|
||||
];
|
||||
};
|
||||
/* These machines will be configured later. */
|
||||
/*
|
||||
# Celerrime = MacBook Air M2
|
||||
|
@ -57,18 +78,6 @@
|
|||
./machines/effundam/hardware.nix
|
||||
];
|
||||
};
|
||||
# Vetus = iMac 27" 2017, i5, 64 GB RAM
|
||||
nixosConfigurations."vetus" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./common/base.nix
|
||||
./common/user.nix
|
||||
./roles/graphical.nix
|
||||
./roles/gaming.nix
|
||||
./machines/vetus/configuration.nix
|
||||
./machines/vetus/hardware.nix
|
||||
];
|
||||
};
|
||||
*/
|
||||
};
|
||||
}
|
14
machines/vetus/configuration.nix
Normal file
14
machines/vetus/configuration.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "vetus";
|
||||
time.timeZone = "Europe/Moscow";
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
}
|
||||
|
31
machines/vetus/hardware.nix
Normal file
31
machines/vetus/hardware.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/hardware/network/broadcom-43xx.nix")
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||
boot.initrd.kernelModules = ["amdgpu"];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/nvme0n1p2";
|
||||
fsType = "btrfs";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/B167-E1D3";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
7
roles/latex.nix
Normal file
7
roles/latex.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
texlive.combined.scheme-full
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue