Add oldtown
This commit is contained in:
parent
5bc2d5b878
commit
e1afafff33
9 changed files with 97 additions and 23 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/configuration.nix
|
|
@ -1,5 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [ ./machines/pentos/default.nix ];
|
|
||||||
}
|
|
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
|
../../profiles/graphical/default.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader = {
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
systemd-boot.enable = true;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
|
||||||
networking.hostName = "pentos";
|
networking = {
|
||||||
networking.wireless.enable = true;
|
hostName = "pentos";
|
||||||
|
wireless.enable = true;
|
||||||
networking.interfaces.enp0s31f6.useDHCP = true;
|
interfaces = {
|
||||||
networking.interfaces.wlp0s20f3.useDHCP = true;
|
enp0s31f6.useDHCP = true;
|
||||||
|
wlp0s20f3.useDHCP = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
time.timeZone = "Europe/Brussels";
|
time.timeZone = "Europe/Brussels";
|
||||||
|
|
||||||
|
@ -26,21 +31,14 @@
|
||||||
# this value at the release version of the first install of this system.
|
# this value at the release version of the first install of this system.
|
||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (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-manager.users.charlotte = { ... }: {
|
||||||
home = {
|
home.stateVersion = "20.03";
|
||||||
stateVersion = "20.03";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Machine-specific application settings
|
# Machine-specific application settings
|
||||||
custom = {
|
custom = {
|
||||||
git.email = "charlotte@vanpetegem.me";
|
git.email = "charlotte@vanpetegem.me";
|
||||||
};
|
};
|
||||||
|
|
||||||
system = {
|
|
||||||
autoUpgrade.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,10 @@
|
||||||
|
|
||||||
users.users.charlotte.extraGroups = [ "networkmanager" "video" "input" ];
|
users.users.charlotte.extraGroups = [ "networkmanager" "video" "input" ];
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [ eid-mw ];
|
||||||
|
|
||||||
|
system.autoUpgrade.enable = true;
|
||||||
|
|
||||||
home-manager.users.charlotte = { pkgs, ... }: {
|
home-manager.users.charlotte = { pkgs, ... }: {
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config = {
|
config = {
|
||||||
|
@ -51,7 +55,6 @@
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
chromium
|
chromium
|
||||||
eid-mw
|
|
||||||
firefox
|
firefox
|
||||||
hledger
|
hledger
|
||||||
libreoffice
|
libreoffice
|
||||||
|
|
Binary file not shown.
5
sample-configuration.nix
Normal file
5
sample-configuration.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ ./machines/oldtown/default.nix ];
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue