More config
This commit is contained in:
parent
1247b05423
commit
9566f776be
|
@ -1,14 +1,12 @@
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
let
|
{
|
||||||
rust-scripts = with pkgs; callPackage ../packages/rust-scripts {};
|
|
||||||
unstable-pkgs = import <unstable> {};
|
|
||||||
eventd = unstable-pkgs.callPackage ../packages/eventd {};
|
|
||||||
st = import graphical/st;
|
|
||||||
in {
|
|
||||||
nixpkgs.config.packageOverrides = pkgs: {
|
nixpkgs.config.packageOverrides = pkgs: {
|
||||||
eventd = eventd;
|
rust-scripts = pkgs.callPackage ./packages/rust-scripts {};
|
||||||
st = st pkgs config.common.colors;
|
jali = pkgs.callPackage ./packages/jali {};
|
||||||
|
eventd = (import <unstable> {}).callPackage ./packages/eventd {};
|
||||||
|
st = (import graphical/st) pkgs config.common.colors;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".tmux.conf".text = ''
|
home.file.".tmux.conf".text = ''
|
||||||
set -g default-terminal "st-256color"
|
set -g default-terminal "st-256color"
|
||||||
set -ga terminal-overrides ",st-256color:Tc"
|
set -ga terminal-overrides ",st-256color:Tc"
|
||||||
|
@ -16,6 +14,7 @@ in {
|
||||||
set -g status off
|
set -g status off
|
||||||
set -g escape-time 1
|
set -g escape-time 1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
home-manager = {
|
home-manager = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -129,8 +128,6 @@ in {
|
||||||
pythonPackages.qrcode
|
pythonPackages.qrcode
|
||||||
ranger
|
ranger
|
||||||
|
|
||||||
# rust-scripts
|
|
||||||
|
|
||||||
(pkgs.neovim.override {
|
(pkgs.neovim.override {
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
withPython3 = true;
|
withPython3 = true;
|
||||||
|
@ -145,7 +142,6 @@ in {
|
||||||
'';
|
'';
|
||||||
packages.myVimPackage = with pkgs.vimPlugins; {
|
packages.myVimPackage = with pkgs.vimPlugins; {
|
||||||
start = [
|
start = [
|
||||||
# deoplete-nvim
|
|
||||||
vim-nix
|
vim-nix
|
||||||
ctrlp
|
ctrlp
|
||||||
vimtex
|
vimtex
|
||||||
|
@ -153,11 +149,8 @@ in {
|
||||||
UltiSnips
|
UltiSnips
|
||||||
airline
|
airline
|
||||||
rust-vim
|
rust-vim
|
||||||
# deoplete-rust
|
|
||||||
fugitive
|
fugitive
|
||||||
airline
|
airline
|
||||||
# ale
|
|
||||||
# vim-snippets
|
|
||||||
vim-trailing-whitespace
|
vim-trailing-whitespace
|
||||||
vim-polyglot
|
vim-polyglot
|
||||||
nvim-cm-racer
|
nvim-cm-racer
|
||||||
|
|
13
home-manager/packages/jali/default.nix
Normal file
13
home-manager/packages/jali/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{ jinja2, pendulum, GitPython, aqbanking, python36Packages, fetchgit }:
|
||||||
|
with python36Packages; buildPythonApplication rec {
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
pname = "jali";
|
||||||
|
doCheck = false;
|
||||||
|
version = "1d1c5d0a";
|
||||||
|
src = fetchgit {
|
||||||
|
url = "https://git.darmstadt.ccc.de/jali/jali.git";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1nzzangp7yr2gq66qz7wk2cqqwjlhrfaqmc85qigjv4vpfmlphl0";
|
||||||
|
};
|
||||||
|
propagatedBuildInputs = [ jinja2 pendulum GitPython aqbanking ];
|
||||||
|
}
|
|
@ -1,22 +1,23 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
networking = {
|
imports = [
|
||||||
hostName = "apollo";
|
|
||||||
networkmanager.enable = true;
|
|
||||||
hostId = "38d29f92";
|
|
||||||
};
|
|
||||||
|
|
||||||
i18n.consoleKeyMap = "neo";
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
<home-manager/nixos>
|
<home-manager/nixos>
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../modules/cdarknet
|
../../system
|
||||||
../../host-common/common.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager.users = {};
|
networking = {
|
||||||
|
hostName = "apollo";
|
||||||
|
};
|
||||||
|
|
||||||
|
m-0 = {
|
||||||
|
laptop.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
home-manager.users.maralorn = {
|
||||||
|
imports = [ ./home.nix ];
|
||||||
|
};
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot = {
|
boot = {
|
||||||
|
@ -27,47 +28,13 @@ boot = {
|
||||||
supportedFilesystems = [ "exfat" ];
|
supportedFilesystems = [ "exfat" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
security.rngd.enable = true;
|
|
||||||
|
|
||||||
cdark_net = {
|
cdark_net = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostName = "maralorn_apollo";
|
hostName = "maralorn_apollo";
|
||||||
ed25519PrivateKeyFile = /etc/nixos/local/tinc/ed25519_key.priv;
|
ed25519PrivateKeyFile = /etc/nixos/hosts/apollo/secret/tinc/ed25519_key.priv;
|
||||||
hostsDirectory = /etc/nixos/config/modules/cdarknet/hosts;
|
hostsDirectory = /etc/nixos/system/modules/cdarknet/hosts;
|
||||||
ip6address = "fd23:42:cda:4342::2";
|
ip6address = "fd23:42:cda:4342::2";
|
||||||
ip4address = "172.20.71.2";
|
ip4address = "172.20.71.2";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
hardware.pulseaudio.enable = true;
|
|
||||||
services = {
|
|
||||||
# printing = {
|
|
||||||
# enable = true;
|
|
||||||
# drivers = [pkgs.hplip];
|
|
||||||
# };
|
|
||||||
# gnome3 = {
|
|
||||||
# gnome-keyring.enable = true;
|
|
||||||
# evolution-data-server.enable = true;
|
|
||||||
# gnome-disks.enable = true;
|
|
||||||
# };
|
|
||||||
xserver = {
|
|
||||||
enable = true;
|
|
||||||
layout = "de";
|
|
||||||
xkbVariant = "neo";
|
|
||||||
libinput.enable = true;
|
|
||||||
desktopManager.gnome3.enable = true;
|
|
||||||
displayManager.auto = {
|
|
||||||
enable = true;
|
|
||||||
user = "maralorn";
|
|
||||||
};
|
|
||||||
config = ''
|
|
||||||
Section "InputClass"
|
|
||||||
Identifier "Enable libinput for TrackPoint"
|
|
||||||
MatchIsPointer "on"
|
|
||||||
Driver "libinput"
|
|
||||||
EndSection
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
#virtualisation.docker.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|
2
hosts/apollo/secret/.gitattributes
vendored
Normal file
2
hosts/apollo/secret/.gitattributes
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
* filter=git-crypt-apollo diff=git-crypt-apollo
|
||||||
|
.gitattributes !filter !diff
|
BIN
hosts/apollo/secret/pw-maralorn
Normal file
BIN
hosts/apollo/secret/pw-maralorn
Normal file
Binary file not shown.
BIN
hosts/apollo/secret/tinc/ed25519_key.priv
Normal file
BIN
hosts/apollo/secret/tinc/ed25519_key.priv
Normal file
Binary file not shown.
|
@ -3,29 +3,23 @@
|
||||||
# channel = 18.03
|
# channel = 18.03
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
./laptop.nix
|
||||||
./admin.nix
|
./admin.nix
|
||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
|
modules/cdarknet
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
i18n = {
|
i18n = {
|
||||||
defaultLocale = "en_US.UTF-8";
|
defaultLocale = "en_US.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
time.timeZone = "Europe/Berlin";
|
time.timeZone = "Europe/Berlin";
|
||||||
|
|
||||||
|
security.rngd.enable = true;
|
||||||
|
|
||||||
# So that boot does not fill up with old kernels
|
# So that boot does not fill up with old kernels
|
||||||
boot.loader.grub.configurationLimit = 5;
|
boot.loader.grub.configurationLimit = 5;
|
||||||
|
|
||||||
nix = {
|
|
||||||
gc = {
|
|
||||||
automatic = true;
|
|
||||||
options = "--delete-older-than 5d";
|
|
||||||
};
|
|
||||||
optimise.automatic = true;
|
|
||||||
};
|
|
||||||
system.autoUpgrade.enable = true;
|
|
||||||
system.autoUpgrade.dates = "22:00";
|
|
||||||
|
|
||||||
users = {
|
users = {
|
||||||
defaultUserShell = pkgs.zsh;
|
defaultUserShell = pkgs.zsh;
|
||||||
mutableUsers = false;
|
mutableUsers = false;
|
||||||
|
@ -46,7 +40,6 @@
|
||||||
git
|
git
|
||||||
gnumake
|
gnumake
|
||||||
python3
|
python3
|
||||||
python
|
|
||||||
mkpasswd
|
mkpasswd
|
||||||
rxvt_unicode.terminfo
|
rxvt_unicode.terminfo
|
||||||
htop
|
htop
|
35
system/laptop.nix
Normal file
35
system/laptop.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
m-0.laptop.enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = mkIf config.m-0.laptop.enable {
|
||||||
|
networking = {
|
||||||
|
networkmanager.enable = true;
|
||||||
|
};
|
||||||
|
i18n.consoleKeyMap = "neo";
|
||||||
|
hardware.pulseaudio.enable = true;
|
||||||
|
services = {
|
||||||
|
xserver = {
|
||||||
|
enable = true;
|
||||||
|
layout = "de";
|
||||||
|
xkbVariant = "neo";
|
||||||
|
libinput.enable = true;
|
||||||
|
desktopManager.gnome3.enable = true;
|
||||||
|
displayManager.auto = {
|
||||||
|
enable = true;
|
||||||
|
user = "maralorn";
|
||||||
|
};
|
||||||
|
config = ''
|
||||||
|
Section "InputClass"
|
||||||
|
Identifier "Enable libinput for TrackPoint"
|
||||||
|
MatchIsPointer "on"
|
||||||
|
Driver "libinput"
|
||||||
|
EndSection
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,4 +1,21 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
options = {
|
||||||
|
m-0.server.enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf config.m-0.server.enable {
|
||||||
|
nix = {
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
options = "--delete-older-than 5d";
|
||||||
|
};
|
||||||
|
optimise.automatic = true;
|
||||||
|
};
|
||||||
|
system.autoUpgrade.enable = true;
|
||||||
|
system.autoUpgrade.dates = "22:00";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue