deploy sternchen

This commit is contained in:
Ingolf Wagner 2024-05-23 16:04:36 +02:00
parent 64bad7f2e0
commit 22e87888b5
Signed by: palo
GPG key ID: 76BF5F1928B9618B
7 changed files with 100 additions and 5 deletions

View file

@ -326,11 +326,17 @@
{
sternchen = nixosConfigurationSetup {
name = "sternchen";
host = "sternchen.secret";
#host = "sternchen.secret";
#host = "192.168.178.25";
host = "sternchen";
modules = [
nixos-hardware.nixosModules.lenovo-thinkpad-x220
homeManagerModules
{ home-manager.users.mainUser.gui.enable = true; }
{
home-manager.users.mainUser = import ./nixos/homes/tina;
home-manager.users.root = import ./nixos/homes/root;
}
];
};
cream = nixosConfigurationSetup {

View file

@ -1 +1,9 @@
{ pkgs, ... }:
{
imports = [
../common
./stylix.nix
./logseq.nix
./packages.nix
];
}

View file

@ -0,0 +1,18 @@
{ config, lib, pkgs, ... }:
with pkgs;
with lib;
{
config = mkIf config.gui.enable {
home.packages = [
logseq
];
home.file.".config/Logseq/Preferences".source = (pkgs.formats.json { }).generate "LogseqPreferences.json"
{
spellcheck = {
dictionaries = [ "en-US" "de-DE" ];
dictionary = "";
};
};
};
}

View file

@ -0,0 +1,32 @@
{ config, lib, pkgs, ... }:
with pkgs;
with lib;
{
config = mkIf config.gui.enable {
home.packages = [
tor-browser-bundle-bin
#(tor-browser-bundle-bin.overrideAttrs (old: rec {
# version = "11.0.1";
# name = "tor-browser-bundle-${version}";
# src = pkgs.fetchurl {
# url = "https://dist.torproject.org/torbrowser/11.0.1/tor-browser-linux64-11.0.1_en-US.tar.xz";
# sha256 = "1ah69jmfgik063f9gkvyv9d4k706pqihmzc4k7cc95zyd17v8wrs";
# };
#}))
bitwarden
unstable.yt-dlp
# office
pdfarranger
calibre
];
};
}

View file

@ -0,0 +1,27 @@
{ pkgs, config, ... }:
{
stylix.targets.swaylock.enable = config.gui.enable;
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-light-medium.yaml";
stylix.fonts = {
serif = {
package = pkgs.ubuntu_font_family;
name = "Ubuntu";
};
sansSerif = {
package = pkgs.ubuntu_font_family;
name = "Ubuntu";
};
monospace = {
package = pkgs.jetbrains-mono;
name = "JetBrains Mono";
};
emoji = {
package = pkgs.noto-fonts-emoji;
name = "Noto Color Emoji";
};
};
}

View file

@ -19,6 +19,8 @@
];
system.stateVersion = "22.11";
sops.secrets.pushover_user_key = { };
sops.secrets.pushover_api_key = { };
@ -142,6 +144,5 @@
enable = true;
};
system.stateVersion = "22.11";
}

View file

@ -4,9 +4,7 @@
../../components
../../modules
./hardware-configuration.nix
./packages.nix
./syncthing.nix
./tinc.nix
@ -15,6 +13,10 @@
sops.defaultSopsFile = ../../secrets/sternchen.yaml;
networking.hostName = "sternchen";
system.stateVersion = "23.11";
# for calibre server
networking.firewall.allowedTCPPorts = [ 8080 ];
components.gui.enable = true;
components.gui.kmonad.enable = false;
@ -23,6 +25,7 @@
components.network.enable = true;
components.network.wifi.enable = true;
components.mainUser.enable = true;
components.monitor.enable = false;
users.users.mainUser.extraGroups = [ "adbusers" "video" ];
home-manager.users.mainUser.home.git-pull.enable = false;