glotzbert: setup
This commit is contained in:
parent
f8e232b2e4
commit
a376aaad01
|
@ -7,40 +7,47 @@
|
|||
users.k-ot = true;
|
||||
isInHq = true;
|
||||
hq.interface = "eno1";
|
||||
hq.enableBinaryCache = false;
|
||||
enableHail = false;
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nix = {
|
||||
useSandbox = true;
|
||||
buildCores = 2;
|
||||
buildCores = 4;
|
||||
maxJobs = 4;
|
||||
};
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.kernelPackages = pkgs.linuxPackages_4_19;
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
networking.hostName = "glotzbert"; # Define your hostname.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
networking.interfaces.eno1.useDHCP = true;
|
||||
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n = {
|
||||
consoleFont = "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
|
||||
consoleKeyMap = "us";
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
console = {
|
||||
font = "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
|
||||
keyMap = "de";
|
||||
};
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [ wget vim x11vnc ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
wget vim git tmux screen
|
||||
chromium firefox
|
||||
mpv kodi
|
||||
];
|
||||
|
||||
systemd.user.services.x11vnc = {
|
||||
description = "X11 VNC server";
|
||||
|
@ -108,11 +115,11 @@
|
|||
user = "k-ot";
|
||||
};
|
||||
};
|
||||
defaultSession = "gnome-xorg";
|
||||
};
|
||||
services.xserver.desktopManager = {
|
||||
gnome3.enable = true;
|
||||
kodi.enable = true;
|
||||
default = "kodi";
|
||||
};
|
||||
|
||||
security.sudo = {
|
||||
|
@ -123,7 +130,6 @@
|
|||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.groups."k-ot" = { gid = 1000; };
|
||||
users.users."k-ot" = {
|
||||
password = "k-ot";
|
||||
isNormalUser = true;
|
||||
uid = 1000;
|
||||
group = "k-ot";
|
||||
|
@ -133,23 +139,6 @@
|
|||
];
|
||||
};
|
||||
|
||||
fileSystems."/mnt/storage" = {
|
||||
#device = "storage-ng.hq.c3d2.de:/mnt/zroot/storage/rpool";
|
||||
#device = "storage-ng.hq.c3d2.de:/c3d2/rpool";
|
||||
device =
|
||||
"172.22.99.13:6789,172.22.99.15:6789,172.22.99.16:6789:/c3d2/rpool";
|
||||
fsType = "ceph";
|
||||
options = [
|
||||
"rw"
|
||||
"relatime"
|
||||
"name=public"
|
||||
"secret=AQDgER1chJcMORAAK1ysRTN59B5x/MyniwVXFQ=="
|
||||
"acl"
|
||||
"wsize=16777216"
|
||||
"_netdev"
|
||||
];
|
||||
};
|
||||
|
||||
users.users.emery.cryptHomeLuks = "/home/emery.luks.img";
|
||||
|
||||
# This value determines the NixOS release with which your system is to be
|
||||
|
|
Loading…
Reference in New Issue