Add oldtown

This commit is contained in:
Charlotte Van Petegem 2020-02-20 10:48:07 +01:00
parent 5bc2d5b878
commit e1afafff33
9 changed files with 97 additions and 23 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/configuration.nix

View file

@ -1,5 +0,0 @@
{ ... }:
{
imports = [ ./machines/pentos/default.nix ];
}

View 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. Its 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";
};
}

View 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

Binary file not shown.

View file

@ -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;
};
} }

View file

@ -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
View file

@ -0,0 +1,5 @@
{ ... }:
{
imports = [ ./machines/oldtown/default.nix ];
}