Refactored lisa

This commit is contained in:
Julien Malka 2021-12-21 00:00:21 +01:00
parent 09b1375115
commit 8110cd8d4f
3 changed files with 38 additions and 47 deletions

View file

@ -7,68 +7,26 @@
imports =
[
(modulesPath + "/profiles/qemu-guest.nix")
./hardware.nix
./home-julien.nix
];
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
luj.hmgr.julien = {
luj.programs.neovim.enable = true;
luj.programs.git.enable = true;
};
fileSystems."/" =
{
device = "/dev/disk/by-uuid/eaec3978-f462-4634-95e6-06d59512deb8";
fsType = "ext4";
};
fileSystems."/boot" =
{
device = "/dev/disk/by-uuid/EAD2-51DB";
fsType = "vfat";
};
swapDevices =
[{ device = "/dev/disk/by-uuid/c19ec918-ba8c-4bab-9ee0-831465cb432e"; }];
nix.maxJobs = lib.mkDefault 8;
# Specific to lisa but not hardware
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
luj.mediaserver.enable = true;
luj.homepage.enable = true;
networking.hostName = "lisa"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
nix.maxJobs = lib.mkDefault 8;
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking.useDHCP = false;
networking.hostName = "lisa"; # Define your hostname.
networking.interfaces.ens18.useDHCP = true;
networking.interfaces.ens19.useDHCP = false;
networking.interfaces.ens19.ipv6.addresses = [{
address = "2a01:e0a:5f9:9681:5880:c9ff:fe9f:3dfb";
prefixLength = 120;
}];
networking.firewall.allowedTCPPorts = [ 22 80 443 8096 8920 ];
networking.firewall.allowedUDPPorts = [ 22 80 443 1900 7359 ];
networking.firewall.allowedUDPPortRanges = [{ from = 60000; to = 61000; }];
system.stateVersion = "20.09"; # Did you read the comment?
}

View file

@ -0,0 +1,26 @@
{ pkgs, config, lib, ... }:
{
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
fileSystems."/" =
{
device = "/dev/disk/by-uuid/eaec3978-f462-4634-95e6-06d59512deb8";
fsType = "ext4";
};
fileSystems."/boot" =
{
device = "/dev/disk/by-uuid/EAD2-51DB";
fsType = "vfat";
};
swapDevices =
[{ device = "/dev/disk/by-uuid/c19ec918-ba8c-4bab-9ee0-831465cb432e"; }];
}

View file

@ -0,0 +1,7 @@
{ pkgs, lib, config, ... }:
{
luj.hmgr.julien = {
luj.programs.neovim.enable = true;
luj.programs.git.enable = true;
};
}