Initial commit
This commit is contained in:
commit
b0a95003b7
57 changed files with 1561 additions and 0 deletions
86
hosts/julius-framework/default.nix
Normal file
86
hosts/julius-framework/default.nix
Normal file
|
@ -0,0 +1,86 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ outputs, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
../../modules/nix.nix
|
||||
../../modules/system.nix
|
||||
../../modules/firmware.nix
|
||||
../../modules/laptop.nix
|
||||
../../modules/network.nix
|
||||
../../modules/locale.nix
|
||||
../../modules/boot-login.nix
|
||||
../../modules/fonts.nix
|
||||
../../modules/cli-essentials.nix
|
||||
../../modules/i3.nix
|
||||
../../modules/fingerprint.nix
|
||||
../../modules/logitech.nix
|
||||
../../modules/connectivity.nix
|
||||
../../modules/video-and-sound.nix
|
||||
../../modules/bluetooth.nix
|
||||
../../modules/desktop-essentials.nix
|
||||
../../modules/internet.nix
|
||||
../../modules/sync-clients.nix
|
||||
../../modules/office.nix
|
||||
../../modules/administration.nix
|
||||
../../modules/creativity.nix
|
||||
../../modules/security.nix
|
||||
../../modules/typesetting.nix
|
||||
../../modules/docker.nix
|
||||
../../modules/distrobox.nix
|
||||
../../modules/gui-coding.nix
|
||||
../../modules/optical-media.nix
|
||||
../../modules/flatpak.nix
|
||||
../../modules/gaming.nix
|
||||
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
nixpkgs = {
|
||||
overlays = [
|
||||
outputs.overlays.additions
|
||||
];
|
||||
};
|
||||
|
||||
# Bootloader.
|
||||
boot = {
|
||||
loader = {
|
||||
efi.canTouchEfiVariables = true;
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
editor = false;
|
||||
};
|
||||
};
|
||||
initrd = {
|
||||
systemd.enable = true;
|
||||
luks.devices = {
|
||||
cryptlvm = {
|
||||
device = "/dev/disk/by-uuid/45a8e584-409d-4627-8679-b8cdb837afc4";
|
||||
};
|
||||
};
|
||||
};
|
||||
tmp.useTmpfs = true;
|
||||
};
|
||||
|
||||
networking.hostName = "julius-framework"; # Define your hostname.
|
||||
|
||||
location = {
|
||||
latitude = 48.740556;
|
||||
longitude = 9.310833;
|
||||
};
|
||||
|
||||
# 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 = "24.11"; # Did you read the comment?
|
||||
|
||||
}
|
||||
|
45
hosts/julius-framework/hardware-configuration.nix
Normal file
45
hosts/julius-framework/hardware-configuration.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/4e3c6669-42f3-4ebb-aec1-f09999739e38";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/D676-1631";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
fileSystems."/home" =
|
||||
{ device = "/dev/disk/by-uuid/592e90f1-e42b-4059-ab03-eb834c05091d";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/0cd2bd1b-90b3-432c-82a0-5335900f3ba3"; }
|
||||
];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp170s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue