mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-31 17:20:53 +02:00
Refactored lisa
This commit is contained in:
parent
09b1375115
commit
8110cd8d4f
3 changed files with 38 additions and 47 deletions
|
@ -7,68 +7,26 @@
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
|
./hardware.nix
|
||||||
|
./home-julien.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sd_mod" "sr_mod" ];
|
luj.mediaserver.enable = true;
|
||||||
boot.initrd.kernelModules = [ ];
|
luj.homepage.enable = true;
|
||||||
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;
|
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.hostName = "lisa"; # Define your hostname.
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
||||||
|
|
||||||
# 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.interfaces.ens18.useDHCP = true;
|
networking.interfaces.ens18.useDHCP = true;
|
||||||
networking.interfaces.ens19.useDHCP = false;
|
networking.interfaces.ens19.useDHCP = false;
|
||||||
networking.interfaces.ens19.ipv6.addresses = [{
|
networking.interfaces.ens19.ipv6.addresses = [{
|
||||||
address = "2a01:e0a:5f9:9681:5880:c9ff:fe9f:3dfb";
|
address = "2a01:e0a:5f9:9681:5880:c9ff:fe9f:3dfb";
|
||||||
prefixLength = 120;
|
prefixLength = 120;
|
||||||
}];
|
}];
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 22 80 443 8096 8920 ];
|
networking.firewall.allowedTCPPorts = [ 22 80 443 8096 8920 ];
|
||||||
networking.firewall.allowedUDPPorts = [ 22 80 443 1900 7359 ];
|
networking.firewall.allowedUDPPorts = [ 22 80 443 1900 7359 ];
|
||||||
networking.firewall.allowedUDPPortRanges = [{ from = 60000; to = 61000; }];
|
networking.firewall.allowedUDPPortRanges = [{ from = 60000; to = 61000; }];
|
||||||
|
|
||||||
|
|
||||||
system.stateVersion = "20.09"; # Did you read the comment?
|
system.stateVersion = "20.09"; # Did you read the comment?
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
26
machines/lisa/hardware.nix
Normal file
26
machines/lisa/hardware.nix
Normal 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"; }];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
7
machines/lisa/home-julien.nix
Normal file
7
machines/lisa/home-julien.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
{
|
||||||
|
luj.hmgr.julien = {
|
||||||
|
luj.programs.neovim.enable = true;
|
||||||
|
luj.programs.git.enable = true;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue