makefu: cleanup,refactoring after transfer
This commit is contained in:
parent
f666c21790
commit
7a1e2f83b2
@ -7,22 +7,24 @@
|
|||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
../2configs/base.nix
|
../2configs/base.nix
|
||||||
../2configs/base-gui.nix
|
../2configs/main-laptop.nix #< base-gui
|
||||||
|
|
||||||
../2configs/tinc-basic-retiolum.nix
|
../2configs/tinc-basic-retiolum.nix
|
||||||
#../2configs/sda-crypto-root.nix
|
#../2configs/sda-crypto-root.nix
|
||||||
../2configs/sda-crypto-root-home.nix
|
../2configs/sda-crypto-root-home.nix
|
||||||
# hardware specifics are in here
|
|
||||||
../2configs/tp-x200.nix
|
|
||||||
|
|
||||||
|
../2configs/zsh-user.nix
|
||||||
|
../2configs/exim-retiolum.nix
|
||||||
#../2configs/disable_v6.nix
|
#../2configs/disable_v6.nix
|
||||||
#../2configs/rad1o.nix
|
|
||||||
|
|
||||||
#../2configs/exim-retiolum.nix
|
# hardware specifics are in here
|
||||||
|
../2configs/tp-x220.nix
|
||||||
];
|
];
|
||||||
# not working in vm
|
|
||||||
krebs.build.host = config.krebs.hosts.pornocauster;
|
krebs.build.host = config.krebs.hosts.pornocauster;
|
||||||
krebs.build.user = config.krebs.users.makefu;
|
krebs.build.user = config.krebs.users.makefu;
|
||||||
krebs.build.target = "root@localhost";
|
krebs.build.target = "root@pornocauster";
|
||||||
|
|
||||||
|
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
|
||||||
@ -36,7 +38,6 @@
|
|||||||
#url = https://github.com/NixOS/nixpkgs;
|
#url = https://github.com/NixOS/nixpkgs;
|
||||||
# rev=$(curl https://nixos.org/channels/nixos-unstable/git-revision -L)
|
# rev=$(curl https://nixos.org/channels/nixos-unstable/git-revision -L)
|
||||||
url = https://github.com/makefu/nixpkgs;
|
url = https://github.com/makefu/nixpkgs;
|
||||||
#rev = "8b8b65da24f13f9317504e8bcba476f9161613fe";
|
|
||||||
rev = "f5fe787f778b872c6b2221598501c9310cb83915";
|
rev = "f5fe787f778b872c6b2221598501c9310cb83915";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -11,11 +11,12 @@
|
|||||||
../2configs/tinc-basic-retiolum.nix
|
../2configs/tinc-basic-retiolum.nix
|
||||||
../2configs/sda-crypto-root.nix
|
../2configs/sda-crypto-root.nix
|
||||||
# hardware specifics are in here
|
# hardware specifics are in here
|
||||||
../2configs/tp-x200.nix
|
../2configs/tp-x200.nix #< imports tp-x2x0.nix
|
||||||
|
|
||||||
../2configs/disable_v6.nix
|
../2configs/disable_v6.nix
|
||||||
../2configs/rad1o.nix
|
../2configs/rad1o.nix
|
||||||
|
|
||||||
|
../2configs/zsh-user.nix
|
||||||
../2configs/exim-retiolum.nix
|
../2configs/exim-retiolum.nix
|
||||||
];
|
];
|
||||||
# not working in vm
|
# not working in vm
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
##
|
##
|
||||||
# of course this name is a lie - it prepares a GUI environment close to my
|
# of course this name is a lie
|
||||||
# current configuration.
|
# - it prepares a GUI environment close to my
|
||||||
|
# current configuration,specifically:
|
||||||
#
|
#
|
||||||
# autologin with mainUser into awesome
|
# * autologin with mainUser into awesome
|
||||||
##
|
# * audio
|
||||||
|
# * terminus font
|
||||||
#
|
#
|
||||||
|
# if this is not enough, check out main-laptop.nix
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
mainUser = config.krebs.build.user.name;
|
mainUser = config.krebs.build.user.name;
|
||||||
@ -28,14 +32,6 @@ in
|
|||||||
displayManager.auto.user = mainUser;
|
displayManager.auto.user = mainUser;
|
||||||
desktopManager.xterm.enable = false;
|
desktopManager.xterm.enable = false;
|
||||||
};
|
};
|
||||||
services.redshift = {
|
|
||||||
enable = true;
|
|
||||||
latitude = "48.7";
|
|
||||||
longitude = "9.1";
|
|
||||||
};
|
|
||||||
|
|
||||||
## FONTS
|
|
||||||
# TODO: somewhere else?
|
|
||||||
|
|
||||||
i18n.consoleFont = "Lat2-Terminus16";
|
i18n.consoleFont = "Lat2-Terminus16";
|
||||||
|
|
||||||
@ -49,12 +45,10 @@ in
|
|||||||
environment.systemPackages = with pkgs;[
|
environment.systemPackages = with pkgs;[
|
||||||
xlockmore
|
xlockmore
|
||||||
rxvt_unicode-with-plugins
|
rxvt_unicode-with-plugins
|
||||||
vlc
|
|
||||||
firefox
|
firefox
|
||||||
chromium
|
|
||||||
];
|
];
|
||||||
# TODO: use mainUser
|
users.extraUsers.${mainUser}.extraGroups = [ "audio" ];
|
||||||
users.extraUsers.makefu.extraGroups = [ "audio" ];
|
|
||||||
hardware.pulseaudio = {
|
hardware.pulseaudio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# systemWide = true;
|
# systemWide = true;
|
||||||
|
23
makefu/2configs/main-laptop.nix
Normal file
23
makefu/2configs/main-laptop.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
# stuff for the main laptop
|
||||||
|
# this is pretty much nice-to-have and does
|
||||||
|
# not fit into base-gui
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
imports = [ ./base-gui.nix ];
|
||||||
|
environment.systemPackages = with pkgs;[
|
||||||
|
vlc
|
||||||
|
firefox
|
||||||
|
chromium
|
||||||
|
keepassx
|
||||||
|
];
|
||||||
|
|
||||||
|
services.redshift = {
|
||||||
|
enable = true;
|
||||||
|
latitude = "48.7";
|
||||||
|
longitude = "9.1";
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -1,8 +1,12 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
# ssd #
|
||||||
# sda: bootloader grub2
|
# sda: bootloader grub2
|
||||||
# sda1: boot ext4 (label nixboot)
|
# sda1: boot ext4 (label nixboot)
|
||||||
# sda2: cryptoluks -> ext4
|
# sda2: cryptoluks -> lvm:
|
||||||
|
# / (main-root)
|
||||||
|
# /home (main-home)
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
{
|
{
|
||||||
boot = {
|
boot = {
|
||||||
|
@ -2,36 +2,13 @@
|
|||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
{
|
{
|
||||||
#services.xserver = {
|
|
||||||
# videoDriver = "intel";
|
imports = [ ./tp-x2x0.nix ];
|
||||||
#};
|
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
kernelModules = [ "tp_smapi" "msr" ];
|
kernelModules = [ "tp_smapi" "msr" ];
|
||||||
extraModulePackages = [ config.boot.kernelPackages.tp_smapi ];
|
extraModulePackages = [ config.boot.kernelPackages.tp_smapi ];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#networking.wireless.enable = true;
|
|
||||||
|
|
||||||
hardware.enableAllFirmware = true;
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
zramSwap.enable = true;
|
|
||||||
zramSwap.numDevices = 2;
|
|
||||||
|
|
||||||
hardware.trackpoint.enable = true;
|
|
||||||
hardware.trackpoint.sensitivity = 255;
|
|
||||||
hardware.trackpoint.speed = 255;
|
|
||||||
services.xserver.displayManager.sessionCommands = ''
|
|
||||||
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
|
|
||||||
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2
|
|
||||||
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 200
|
|
||||||
'';
|
|
||||||
|
|
||||||
services.thinkfan.enable = true;
|
services.thinkfan.enable = true;
|
||||||
services.tlp.enable = true;
|
|
||||||
services.tlp.extraConfig = ''
|
|
||||||
START_CHARGE_THRESH_BAT0=80
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
10
makefu/2configs/tp-x220.nix
Normal file
10
makefu/2configs/tp-x220.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
|
||||||
|
imports = [ ./tp-x2x0.nix ];
|
||||||
|
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
|
||||||
|
}
|
27
makefu/2configs/tp-x2x0.nix
Normal file
27
makefu/2configs/tp-x2x0.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
# TODO: pot this somewhere else
|
||||||
|
networking.wireless.enable = true;
|
||||||
|
|
||||||
|
hardware.enableAllFirmware = true;
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
zramSwap.enable = true;
|
||||||
|
zramSwap.numDevices = 2;
|
||||||
|
|
||||||
|
hardware.trackpoint.enable = true;
|
||||||
|
hardware.trackpoint.sensitivity = 220;
|
||||||
|
hardware.trackpoint.speed = 220;
|
||||||
|
services.xserver.displayManager.sessionCommands = ''
|
||||||
|
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
|
||||||
|
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2
|
||||||
|
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 200
|
||||||
|
'';
|
||||||
|
|
||||||
|
services.tlp.enable = true;
|
||||||
|
services.tlp.extraConfig = ''
|
||||||
|
START_CHARGE_THRESH_BAT0=80
|
||||||
|
'';
|
||||||
|
}
|
10
makefu/2configs/zsh-user.nix
Normal file
10
makefu/2configs/zsh-user.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
##
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
mainUser = config.krebs.build.user.name;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
users.extraUsers.${mainUser}.shell = "/run/current-system/sw/bin/zsh";
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user