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