fix pepe,robi and sterni

This commit is contained in:
Ingolf Wagner 2023-02-17 11:45:09 +01:00
parent 54b9013329
commit 06d58311e4
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
9 changed files with 53 additions and 34 deletions

View file

@ -471,6 +471,28 @@
"type": "github" "type": "github"
} }
}, },
"kmonad": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"dir": "nix",
"lastModified": 1673185501,
"narHash": "sha256-uEtWPpl9nH7QqochHo1z+giPga1zXR1Ko3dOXHIapFY=",
"owner": "kmonad",
"repo": "kmonad",
"rev": "3413f1be996142c8ef4f36e246776a6df7175979",
"type": "github"
},
"original": {
"dir": "nix",
"owner": "kmonad",
"repo": "kmonad",
"type": "github"
}
},
"landingpage": { "landingpage": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_4", "flake-utils": "flake-utils_4",
@ -858,6 +880,7 @@
"grocy-scanner": "grocy-scanner", "grocy-scanner": "grocy-scanner",
"home-manager": "home-manager", "home-manager": "home-manager",
"home-manager-utils": "home-manager-utils", "home-manager-utils": "home-manager-utils",
"kmonad": "kmonad",
"landingpage": "landingpage", "landingpage": "landingpage",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_3", "nixpkgs": "nixpkgs_3",

View file

@ -67,6 +67,10 @@
#url = "git+file:///home/palo/dev/landingpage"; #url = "git+file:///home/palo/dev/landingpage";
url = "github:mrVanDalo/landingpage"; url = "github:mrVanDalo/landingpage";
}; };
kmonad = {
url = "github:kmonad/kmonad?dir=nix";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = outputs =
@ -89,6 +93,7 @@
, sops-nix , sops-nix
, retiolum , retiolum
, landingpage , landingpage
, kmonad
}: }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
@ -186,7 +191,16 @@
grocy-scanner.nixosModule grocy-scanner.nixosModule
nixos-hardware.nixosModules.framework-12th-gen-intel nixos-hardware.nixosModules.framework-12th-gen-intel
#retiolum.nixosModules.retiolum #retiolum.nixosModules.retiolum
#kmonad.nixosModules.default
]; ];
# todo : check out => https://github.com/terlar/nix-config/blob/ad35fbfc20e58626eb9fbd5f67716bc07bb98fc9/home-manager/modules/profiles/user/terje/keyboards.nix
#services.kmonad = {
# enable = false;
# keyboards.laptop-keyboard = {
# name = "laptop-keyboard";
# device = "";
# };
#};
home-manager.users.mainUser = { home-manager.users.mainUser = {
imports = [ imports = [

View file

@ -6,9 +6,12 @@ with lib;
}; };
imports = [ imports = [
# todo : structure with home-manager and such is not cool, create another structure
./xorg ./xorg
./home-manager ./home-manager
./browser.nix ./browser.nix
./suspend.nix
./pass.nix
]; ];
config = mkIf config.components.gui.enable { config = mkIf config.components.gui.enable {

View file

@ -43,9 +43,8 @@
}; };
}; };
programs.custom.steam.enable = true;
programs.custom.video.enable = false; programs.custom.video.enable = false;
programs.custom.steam.enable = true;
services.printing.enable = true; services.printing.enable = true;
# fonts # fonts
@ -86,11 +85,9 @@
# for congress and streaming # for congress and streaming
hardware.opengl = { hardware.opengl = {
enable = true; # todo I actually want opengl enable = true;
#driSupport = true;
#driSupport32Bit = true;
}; };
system.stateVersion = "22.11"; # Did you read the comment? system.stateVersion = "22.11";
} }

View file

@ -70,4 +70,5 @@
# high-resolution display # high-resolution display
hardware.video.hidpi.enable = lib.mkDefault true; hardware.video.hidpi.enable = lib.mkDefault true;
} }

View file

@ -34,23 +34,12 @@
sops.defaultSopsFile = ../../secrets/pepe.yaml; sops.defaultSopsFile = ../../secrets/pepe.yaml;
networking.hostName = "pepe"; networking.hostName = "pepe";
# fonts programs.custom. zsh.enable = true;
# ----- users.users.root.shell = pkgs.zsh;
programs.custom.urxvt.fontSize = 12;
programs.custom.xterm.fontSize = 12;
system.custom.fonts.dpi = 100;
# networking
# ----------
#system.custom.wifi = {
#enable = false;
#interfaces = [ "wlp3s0" ];
#configurationFile = <secrets/wpa_supplicant>;
#};
# todo : rename to component.init.ssh
configuration.init-ssh = { configuration.init-ssh = {
enable = "enabled"; enable = "enabled";
kernelModules = [ "e1000e" ]; kernelModules = [ "e1000e" ];
@ -74,7 +63,5 @@
# todo move to some place else # todo move to some place else
home-manager.users.mailUser.home.stateVersion = "22.11"; home-manager.users.mailUser.home.stateVersion = "22.11";
} }

View file

@ -70,10 +70,8 @@
# Shell configuration # Shell configuration
# ------------------- # -------------------
programs.custom = { programs.custom. zsh.enable = true;
bash.enable = true; users.users.root.shell = pkgs.zsh;
zsh.enable = true;
};
security.acme.acceptTerms = true; security.acme.acceptTerms = true;
security.acme.defaults.email = "contact@ingolf-wagner.de"; security.acme.defaults.email = "contact@ingolf-wagner.de";

View file

@ -2,6 +2,7 @@
imports = [ imports = [
../../components
../../system/desktop ../../system/desktop
../../system/server/netdata.nix ../../system/server/netdata.nix
@ -18,10 +19,10 @@
]; ];
components.gui.enable = true;
services.nginx.enable = true; services.nginx.enable = true;
#sops.defaultSopsFile = ../../secrets/sterni.yaml; #sops.defaultSopsFile = ../../secrets/sterni.yaml;
networking.hostName = "sterni"; networking.hostName = "sterni";
@ -47,11 +48,12 @@
services.printing.enable = true; services.printing.enable = true;
home-manager.users.mainUser.home.stateVersion = "22.11";
# fonts # fonts
# ----- # -----
programs.custom.urxvt.fontSize = 12; programs.custom.urxvt.fontSize = 12;
programs.custom.xterm.fontSize = 12; programs.custom.xterm.fontSize = 12;
system.custom.fonts.dpi = 100;
virtualisation = { virtualisation = {
docker.enable = true; docker.enable = true;

View file

@ -1,17 +1,12 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
with lib; with lib;
let let
cfg = config.programs.custom.zsh; cfg = config.programs.custom.zsh;
in in
{ {
options.programs.custom.zsh = { options.programs.custom.zsh = {
enable = mkEnableOption "enable zsh"; enable = mkEnableOption "enable zsh";
mainUser = mkOption { mainUser = mkOption {
type = with types; nullOr str; type = with types; nullOr str;
default = null; default = null;
@ -19,7 +14,6 @@ in
the main User if available the main User if available
''; '';
}; };
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {