Add oldtown
This commit is contained in:
parent
5bc2d5b878
commit
e1afafff33
9 changed files with 97 additions and 23 deletions
44
machines/oldtown/default.nix
Normal file
44
machines/oldtown/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
<home-manager/nixos>
|
||||
./hardware.nix
|
||||
./secret.nix
|
||||
../../profiles/common/default.nix
|
||||
../../profiles/graphical/default.nix
|
||||
];
|
||||
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "oldtown";
|
||||
wireless.enable = true;
|
||||
interfaces = {
|
||||
enp0s31f6.useDHCP = true;
|
||||
wlp2s0.useDHCP = true;
|
||||
};
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/Brussels";
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "20.03";
|
||||
|
||||
home-manager.users.charlotte = { ... }: {
|
||||
home.stateVersion = "20.03";
|
||||
};
|
||||
|
||||
# Machine-specific application settings
|
||||
custom = {
|
||||
git.email = "charlotte.vanpetegem@ugent.be";
|
||||
};
|
||||
}
|
28
machines/oldtown/hardware.nix
Normal file
28
machines/oldtown/hardware.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.kernelModules = [ "i915" ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/e4b7eae2-546d-412b-9258-389315f4b835";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/A4C4-7B9F";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-uuid/72c82e3c-ea61-488b-8b24-b3c27368a2ba"; }
|
||||
];
|
||||
|
||||
nix.maxJobs = lib.mkDefault 8;
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
hardware.cpu.intel.updateMicrocode = true;
|
||||
}
|
BIN
machines/oldtown/secret.nix
Normal file
BIN
machines/oldtown/secret.nix
Normal file
Binary file not shown.
|
@ -9,14 +9,19 @@
|
|||
../../profiles/graphical/default.nix
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
|
||||
networking.hostName = "pentos";
|
||||
networking.wireless.enable = true;
|
||||
|
||||
networking.interfaces.enp0s31f6.useDHCP = true;
|
||||
networking.interfaces.wlp0s20f3.useDHCP = true;
|
||||
networking = {
|
||||
hostName = "pentos";
|
||||
wireless.enable = true;
|
||||
interfaces = {
|
||||
enp0s31f6.useDHCP = true;
|
||||
wlp0s20f3.useDHCP = true;
|
||||
};
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/Brussels";
|
||||
|
||||
|
@ -26,21 +31,14 @@
|
|||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "20.03"; # Did you read the comment?
|
||||
system.stateVersion = "20.03";
|
||||
|
||||
home-manager.users.charlotte = { pkgs, ... }: {
|
||||
home = {
|
||||
stateVersion = "20.03";
|
||||
};
|
||||
home-manager.users.charlotte = { ... }: {
|
||||
home.stateVersion = "20.03";
|
||||
};
|
||||
|
||||
# Machine-specific application settings
|
||||
custom = {
|
||||
git.email = "charlotte@vanpetegem.me";
|
||||
};
|
||||
|
||||
system = {
|
||||
autoUpgrade.enable = true;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue