mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 14:54:26 -05:00
Initial commit unclean
This commit is contained in:
58
hosts/misox-workstation/configuration.nix
Normal file
58
hosts/misox-workstation/configuration.nix
Normal file
@@ -0,0 +1,58 @@
|
||||
{ config, lib, pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
# Loading the high level modules
|
||||
./hardware-configuration.nix
|
||||
|
||||
# Core of the config
|
||||
../../modules/server
|
||||
|
||||
# Loading modules
|
||||
../../common.nix
|
||||
../../users.nix
|
||||
../../modules/misc/virt.nix
|
||||
#../../modules/rare/minecraft.nix
|
||||
|
||||
# set the keyboard for local dev
|
||||
../../modules/tweaks.nix
|
||||
|
||||
# Load sops
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
];
|
||||
|
||||
# This is the sops setup and should be done here??
|
||||
# Sops configuration and initialisation
|
||||
sops.defaultSopsFile = ../../../secrets.yaml;
|
||||
sops.defaultSopsFormat = "yaml";
|
||||
# hard code the username here
|
||||
sops.age.keyFile = "/home/jonas/.config/sops/age/keys.txt";
|
||||
|
||||
# ensure a user is there to own the template
|
||||
users.users.ddclient = {
|
||||
isSystemUser = true;
|
||||
group = "ddclient";
|
||||
};
|
||||
users.groups.ddclient = {};
|
||||
|
||||
# setup the templates to use them in services
|
||||
sops.secrets.strato_dns = {};
|
||||
sops.templates."ddclient-temp" = {
|
||||
owner = "ddclient";
|
||||
# This is the main strato configuration
|
||||
content = ''
|
||||
ssl=yes
|
||||
protocol=dyndns2
|
||||
use=web, web=api6.ipify.org
|
||||
server=dyndns.strato.com/nic/update
|
||||
login=hahn1.one
|
||||
password='${config.sops.placeholder.strato_dns}'
|
||||
hahn1.one,cloud.hahn1.one,app.hahn1.one,dash.hahn1.one,grafana.hahn1.one,cool.hahn1.one,acmechallenge.hahn1.one
|
||||
'';
|
||||
};
|
||||
|
||||
#system.copySystemConfiguration = true;
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
|
||||
38
hosts/misox-workstation/hardware-configuration.nix
Normal file
38
hosts/misox-workstation/hardware-configuration.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/191c0c61-d012-4b35-8df9-75ae40d6004c";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/B425-9C77";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/94b57e8b-8417-4a1f-a9e4-b6c92cc26ba4"; }
|
||||
];
|
||||
|
||||
# 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.eno1.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp6s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
Reference in New Issue
Block a user