documenting and formatting

This commit is contained in:
Rouven Seifert 2022-12-27 18:21:33 +01:00
parent 398f35980e
commit aa37759efc
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
9 changed files with 18 additions and 51 deletions

View file

@ -67,22 +67,6 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_3": {
"locked": {
"lastModified": 1671877799,
"narHash": "sha256-jjC0NtPOT4huSwyichdrKHVCjuGr1al7Wu6PcHo5XZs=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8351f271f85dae1ee28269028acde661e60394dd",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
@ -92,7 +76,9 @@
}, },
"sops-nix": { "sops-nix": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_3", "nixpkgs": [
"nixpkgs"
],
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {

View file

@ -4,6 +4,7 @@
nixpkgs.url = github:nixos/nixpkgs/nixos-22.11; nixpkgs.url = github:nixos/nixpkgs/nixos-22.11;
home-manager.url = github:nix-community/home-manager; home-manager.url = github:nix-community/home-manager;
sops-nix.url = github:Mic92/sops-nix; sops-nix.url = github:Mic92/sops-nix;
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = { self, nixpkgs, home-manager, sops-nix }: { outputs = { self, nixpkgs, home-manager, sops-nix }: {

View file

@ -17,7 +17,6 @@
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "thinkpad"; networking.hostName = "thinkpad";
sops.defaultSopsFile = ../../secrets/thinkpad.yaml;
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
networking.firewall = { networking.firewall = {
allowedUDPPorts = [ 51820 ]; # used for wireguard allowedUDPPorts = [ 51820 ]; # used for wireguard
@ -64,10 +63,8 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# essentials # essentials
wget wget
git
gcc gcc
htop htop
tmux
dig dig
traceroute traceroute
killall killall
@ -76,6 +73,7 @@
maven maven
]; ];
# control display backlight
programs.light.enable = true; programs.light.enable = true;
programs.gnupg.agent = { programs.gnupg.agent = {
@ -83,31 +81,21 @@
enableSSHSupport = true; enableSSHSupport = true;
}; };
# List services that you want to enable:
services = { services = {
blueman.enable = true; blueman.enable = true; # bluetooth
devmon.enable = true; devmon.enable = true; # automount stuff
pcscd.enable = true; # yubikey and smartcard stuff pcscd.enable = true; # yubikey and smartcard handling
printing.enable = true; printing.enable = true;
fprintd.enable = true; # log in using fingerprint fprintd.enable = true; # log in using fingerprint
picom.enable = true; picom.enable = true; # window transparency
openssh.enable = true; openssh.enable = true; # enabled ssh to have the host keys
}; };
programs.steam.enable = true; # putting steam in here since home manager weirdly complains about it programs.steam.enable = true; # putting steam in here cause in home manager it doesn't work
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
virtualisation.spiceUSBRedirection.enable = true; virtualisation.spiceUSBRedirection.enable = true;
system.stateVersion = "22.11";
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "22.11"; # Did you read the comment?
} }

View file

@ -39,7 +39,6 @@ in
mode = "1920x1080"; mode = "1920x1080";
}; };
}; };
}; };
}; };
}; };

View file

@ -1,9 +1,7 @@
{config, pkgs, ...}: { config, pkgs, ... }:
{ {
environment.systemPackages = with pkgs; [ sops ]; environment.systemPackages = with pkgs; [ sops ];
# directory party
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
sops.age.generateKey = false; sops.age.generateKey = false;
sops.defaultSopsFile = ../secrets/${config.networking.hostName}.yaml;
} }

View file

@ -5,7 +5,7 @@
((vim_configurable.override { }).customize { ((vim_configurable.override { }).customize {
name = "vim"; name = "vim";
vimrcConfig.packages.myplugins = with pkgs.vimPlugins; { vimrcConfig.packages.myplugins = with pkgs.vimPlugins; {
start = [ vim-nix vim-lastplace ]; start = [ vim-nix ];
opt = [ ]; opt = [ ];
}; };
vimrcConfig.customRC = '' vimrcConfig.customRC = ''

View file

@ -1,5 +1,4 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = imports =
[ [

View file

@ -10,6 +10,5 @@
init.defaultBranch = "main"; init.defaultBranch = "main";
commit.gpgsign = true; commit.gpgsign = true;
}; };
}; };
} }

View file

@ -9,9 +9,8 @@
vlc vlc
# graphics # graphics
lxappearance
feh feh
flameshot flameshot #TODO configure it in nix
picom picom
okular okular
gimp gimp
@ -29,11 +28,10 @@
blueman blueman
# internet # internet
thunderbird thunderbird # TODO configure
discord discord
google-chrome google-chrome
nextcloud-client nextcloud-client
zoom-us
# messaging # messaging
tdesktop tdesktop
@ -44,7 +42,6 @@
minecraft minecraft
superTuxKart superTuxKart
extremetuxracer extremetuxracer
wine
# yubikey and password stuff # yubikey and password stuff
yubikey-manager yubikey-manager