WIP
This commit is contained in:
parent
ba1d1a5b96
commit
bb08214389
3 changed files with 47 additions and 26 deletions
|
@ -60,6 +60,7 @@
|
||||||
neovim # editor
|
neovim # editor
|
||||||
veracrypt
|
veracrypt
|
||||||
vim # fallback ed
|
vim # fallback ed
|
||||||
|
git
|
||||||
];
|
];
|
||||||
|
|
||||||
fileSystems."/etc/nixos" = {
|
fileSystems."/etc/nixos" = {
|
||||||
|
|
|
@ -1,14 +1,15 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config
|
||||||
|
, pkgs
|
||||||
{
|
, lib
|
||||||
imports =
|
, ...
|
||||||
[
|
}: {
|
||||||
# Include the results of the hardware scan.
|
imports = [
|
||||||
../../os-mods/common
|
# Include the results of the hardware scan.
|
||||||
../../os-mods/cachix
|
../../os-mods/common
|
||||||
../../os-mods/network
|
../../os-mods/cachix
|
||||||
./hardware-configuration.nix
|
../../os-mods/network
|
||||||
];
|
./hardware-configuration.nix
|
||||||
|
];
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
|
@ -95,7 +96,6 @@
|
||||||
services.xserver.displayManager.autoLogin.enable = true;
|
services.xserver.displayManager.autoLogin.enable = true;
|
||||||
services.xserver.displayManager.autoLogin.user = "reopen5194";
|
services.xserver.displayManager.autoLogin.user = "reopen5194";
|
||||||
|
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
@ -111,18 +111,34 @@
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
# programs.mtr.enable = true;
|
# programs.mtr.enable = true;
|
||||||
|
|
||||||
|
|
||||||
# QemuGuest
|
# QemuGuest
|
||||||
services.qemuGuest.enable = true;
|
services.qemuGuest.enable = true;
|
||||||
|
|
||||||
# Virtualization
|
# Virtualization
|
||||||
virtualisation.docker = {
|
virtualisation.docker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
rootless = {
|
# rootless = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
setSocketVariable = true;
|
# setSocketVariable = true;
|
||||||
|
# };
|
||||||
|
daemon.settings = {
|
||||||
|
# fixed-cidr-v6 = "fd00::/80";
|
||||||
|
# ipv6 = true;
|
||||||
|
dns = [ "9.9.9.9" "149.112.112.112" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
# allow to bind to priv ports
|
||||||
|
# boot.kernel.sysctl = {
|
||||||
|
# "net.ipv4.ip_unprivileged_port_start" = 79;
|
||||||
|
# };
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPortRanges = [
|
||||||
|
{
|
||||||
|
from = 19999;
|
||||||
|
to = 19999;
|
||||||
|
} # netdata
|
||||||
|
];
|
||||||
|
|
||||||
services.netdata = {
|
services.netdata = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
@ -160,6 +176,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
zramSwap.enable = true;
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
|
|
|
@ -1,22 +1,25 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
{ config
|
||||||
|
, lib
|
||||||
{
|
, pkgs
|
||||||
imports =
|
, modulesPath
|
||||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
, ...
|
||||||
];
|
}: {
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ ];
|
boot.kernelModules = [ ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" = {
|
||||||
{ device = "/dev/disk/by-uuid/8598929f-bf20-4f02-9f20-acf899eeee2c";
|
device = "/dev/disk/by-uuid/8598929f-bf20-4f02-9f20-acf899eeee2c";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue