Updates
This commit is contained in:
parent
87e99d61cf
commit
f5f5322622
13 changed files with 128 additions and 109 deletions
|
@ -151,12 +151,12 @@
|
|||
"rev": "bbef9ba8195a85022a5aa19a988872b6b7036836",
|
||||
"revCount": 21,
|
||||
"type": "git",
|
||||
"url": "ssh://git@git.datarift.nl/erwin/ha-now-playing.git"
|
||||
"url": "https://git.datarift.nl/erwin/ha-now-playing.git"
|
||||
},
|
||||
"original": {
|
||||
"ref": "main",
|
||||
"type": "git",
|
||||
"url": "ssh://git@git.datarift.nl/erwin/ha-now-playing.git"
|
||||
"url": "https://git.datarift.nl/erwin/ha-now-playing.git"
|
||||
}
|
||||
},
|
||||
"home-manager": {
|
||||
|
@ -319,12 +319,12 @@
|
|||
"rev": "7c037fef4cdc5933a70694d8c743b5439c8354ea",
|
||||
"revCount": 4,
|
||||
"type": "git",
|
||||
"url": "ssh://git@git.datarift.nl/erwin/pamedia-rs.git"
|
||||
"url": "https://git.datarift.nl/erwin/pamedia-rs.git"
|
||||
},
|
||||
"original": {
|
||||
"ref": "main",
|
||||
"type": "git",
|
||||
"url": "ssh://git@git.datarift.nl/erwin/pamedia-rs.git"
|
||||
"url": "https://git.datarift.nl/erwin/pamedia-rs.git"
|
||||
}
|
||||
},
|
||||
"pybind11-stubgen-src": {
|
||||
|
|
14
flake.nix
14
flake.nix
|
@ -54,7 +54,7 @@
|
|||
};
|
||||
|
||||
ha-now-playing = {
|
||||
url = "git+ssh://git@git.datarift.nl/erwin/ha-now-playing.git?ref=main";
|
||||
url = "git+https://git.datarift.nl/erwin/ha-now-playing.git?ref=main";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.utils.follows = "flake-utils";
|
||||
inputs.naersk.follows = "naersk";
|
||||
|
@ -62,7 +62,7 @@
|
|||
};
|
||||
|
||||
pamedia = {
|
||||
url = "git+ssh://git@git.datarift.nl/erwin/pamedia-rs.git?ref=main";
|
||||
url = "git+https://git.datarift.nl/erwin/pamedia-rs.git?ref=main";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.utils.follows = "flake-utils";
|
||||
inputs.naersk.follows = "naersk";
|
||||
|
@ -150,11 +150,11 @@
|
|||
# };
|
||||
|
||||
nixosModules = builtins.listToAttrs (map
|
||||
(x: {
|
||||
name = x;
|
||||
value = import (./modules + "/${x}");
|
||||
})
|
||||
(builtins.attrNames (builtins.readDir ./modules)));
|
||||
(x: {
|
||||
name = x;
|
||||
value = import (./modules + "/${x}");
|
||||
})
|
||||
(builtins.attrNames (builtins.readDir ./modules)));
|
||||
|
||||
nixosConfigurations = {
|
||||
vm1 = defSystem "x86_64-linux" {
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
with lib; let
|
||||
cfg = config.eboskma.programs.alacritty;
|
||||
importYAML = name: yamlFile: (lib.importJSON ((pkgs.runCommandNoCC name {} ''
|
||||
mkdir -p $out
|
||||
${pkgs.yaml2json}/bin/yaml2json < ${yamlFile} | ${pkgs.jq}/bin/jq -a '.' > $out/tmp.json
|
||||
'')
|
||||
.outPath
|
||||
+ "/tmp.json"));
|
||||
mkdir -p $out
|
||||
${pkgs.yaml2json}/bin/yaml2json < ${yamlFile} | ${pkgs.jq}/bin/jq -a '.' > $out/tmp.json
|
||||
'')
|
||||
.outPath
|
||||
+ "/tmp.json"));
|
||||
theme = importYAML "theme" (builtins.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/dracula/alacritty/05faff15c0158712be87d200081633d9f4850a7d/dracula.yml";
|
||||
sha256 = "1366rvvni2shbqlcrbypjv4f7p7ccdr6bvr685jnj8ipwqjjb6rn";
|
||||
|
|
|
@ -21,5 +21,11 @@ in {
|
|||
# emacsPackage = pkgs.emacs-nox;
|
||||
# doomPrivateDir = ./doom.d;
|
||||
# };
|
||||
|
||||
home.packages = with pkgs; [
|
||||
(texlive.combine {
|
||||
inherit (texlive) scheme-small wrapfig ulem capt-of;
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -24,20 +24,26 @@ with lib; let
|
|||
nonDefaultDesktop = pkgs.makeDesktopItem {
|
||||
name =
|
||||
"firefox-"
|
||||
+ (if cfg.work
|
||||
then "private"
|
||||
else "horus");
|
||||
+ (
|
||||
if cfg.work
|
||||
then "private"
|
||||
else "horus"
|
||||
);
|
||||
desktopName =
|
||||
"Firefox ("
|
||||
+ (if cfg.work
|
||||
then "Private"
|
||||
else "Horus")
|
||||
+ (
|
||||
if cfg.work
|
||||
then "Private"
|
||||
else "Horus"
|
||||
)
|
||||
+ ")";
|
||||
exec =
|
||||
"firefox -P "
|
||||
+ (if cfg.work
|
||||
then "private"
|
||||
else "horus")
|
||||
+ (
|
||||
if cfg.work
|
||||
then "private"
|
||||
else "horus"
|
||||
)
|
||||
+ " %u";
|
||||
icon = "firefox";
|
||||
categories = ["GNOME" "GTK" "Network" "WebBrowser"];
|
||||
|
|
|
@ -257,7 +257,7 @@ in {
|
|||
|
||||
xwayland = true;
|
||||
|
||||
systemdIntegration = false;
|
||||
systemdIntegration = true;
|
||||
};
|
||||
|
||||
home = {
|
||||
|
|
|
@ -28,6 +28,7 @@ in {
|
|||
denoland.vscode-deno
|
||||
# dlasagno.rasi
|
||||
# dprint.dprint
|
||||
eamodio.gitlens
|
||||
editorconfig.editorconfig
|
||||
esbenp.prettier-vscode
|
||||
# EugenWiens.bitbake
|
||||
|
|
|
@ -23,7 +23,7 @@ let
|
|||
pkgs.krops.writeCommand "deploy-${name}" {
|
||||
inherit command;
|
||||
source = source name;
|
||||
target = target;
|
||||
target = lib.mkTarget target;
|
||||
};
|
||||
in rec {
|
||||
# Deployments
|
||||
|
|
|
@ -60,6 +60,7 @@ in {
|
|||
nix-template
|
||||
nvd
|
||||
usbutils
|
||||
zip
|
||||
];
|
||||
|
||||
services.udev = {
|
||||
|
|
|
@ -252,6 +252,7 @@ in {
|
|||
dbus.packages = [pkgs.gcr];
|
||||
avahi.publish.workstation = true;
|
||||
gvfs.enable = true;
|
||||
pcscd.enable = true;
|
||||
};
|
||||
|
||||
security = {
|
||||
|
@ -269,21 +270,23 @@ in {
|
|||
pki.certificates = [(builtins.readFile ./horus-ca.pem)];
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
_JAVA_AWT_WM_NONREPARENTING = "1";
|
||||
MOZ_ENABLE_WAYLAND = "1";
|
||||
MOZ_DBUS_REMOTE = "1";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||||
QT_QPA_PLATFORMTHEME = "qt5ct";
|
||||
SDL_VIDEODRIVER = "wayland";
|
||||
SSH_AUTH_SOCK = ''''${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh'';
|
||||
AMD_VULKAN_ICD = "RADV";
|
||||
# NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
environment = {
|
||||
sessionVariables = {
|
||||
_JAVA_AWT_WM_NONREPARENTING = "1";
|
||||
MOZ_ENABLE_WAYLAND = "1";
|
||||
MOZ_DBUS_REMOTE = "1";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||||
QT_QPA_PLATFORMTHEME = "qt5ct";
|
||||
SDL_VIDEODRIVER = "wayland";
|
||||
SSH_AUTH_SOCK = ''''${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh'';
|
||||
AMD_VULKAN_ICD = "RADV";
|
||||
# NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
|
||||
environment.etc = {
|
||||
"X11/xkb".source = "${pkgs.xkeyboard_config}/etc/X11/xkb";
|
||||
etc = {
|
||||
"X11/xkb".source = "${pkgs.xkeyboard_config}/etc/X11/xkb";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -11,58 +11,59 @@ in {
|
|||
enable = mkEnableOption "enable greetd";
|
||||
};
|
||||
|
||||
config = mkIf (cfg.enable)
|
||||
{
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
restart = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.sway}/bin/sway --config /etc/greetd/sway-config";
|
||||
config =
|
||||
mkIf (cfg.enable)
|
||||
{
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
restart = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.sway}/bin/sway --config /etc/greetd/sway-config";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
environment.systemPackages = with pkgs; [greetd.gtkgreet quintom-cursor-theme papirus-icon-theme arc-theme];
|
||||
environment.systemPackages = with pkgs; [greetd.gtkgreet quintom-cursor-theme papirus-icon-theme arc-theme];
|
||||
|
||||
environment.etc = {
|
||||
"greetd/sway-config" = {
|
||||
text = ''
|
||||
# `-l` activates layer-shell mode. Notice that `swaymsg exit` will run after gtkgreet.
|
||||
exec "${pkgs.greetd.gtkgreet}/bin/gtkgreet -l; swaymsg exit"
|
||||
bindsym Mod4+shift+e exec swaynag \
|
||||
-t warning \
|
||||
-m 'What do you want to do?' \
|
||||
-b 'Poweroff' 'systemctl poweroff' \
|
||||
-b 'Reboot' 'systemctl reboot'
|
||||
include /etc/sway/config.d/*
|
||||
'';
|
||||
user = "greeter";
|
||||
group = "greeter";
|
||||
};
|
||||
"greetd/environments" = {
|
||||
text = ''
|
||||
${pkgs.sway}/bin/sway
|
||||
${pkgs.bash}/bin/bash
|
||||
'';
|
||||
user = "greeter";
|
||||
group = "greeter";
|
||||
};
|
||||
"sway/config.d/systemd-env.conf" = {
|
||||
text = ''
|
||||
exec_always --no-startup-id systemctl --user import-environment _JAVA_AWT_WM_NONREPARENTING MOZ_ENABLE_WAYLAND MOZ_DBUS_REMOTE QT_QPA_PLATFORM QT_WAYLAND_DISABLE_WINDOWDECORATION QT_QPA_PLATFORMTHEME SDL_VIDEODRIVER SSH_AUTH_SOCK
|
||||
exec_always --no-startup-id dbus-update-activation-environment --systemd _JAVA_AWT_WM_NONREPARENTING MOZ_ENABLE_WAYLAND MOZ_DBUS_REMOTE QT_QPA_PLATFORM QT_WAYLAND_DISABLE_WINDOWDECORATION QT_QPA_PLATFORMTHEME SDL_VIDEODRIVER SSH_AUTH_SOCK
|
||||
'';
|
||||
};
|
||||
"xdg/gtk-3.0/settings.ini" = {
|
||||
text = generators.toINI {} {
|
||||
Settings = {
|
||||
gtk-theme-name = "Arc-Dark";
|
||||
gtk-icon-theme-name = "Papirus-Dark";
|
||||
gtk-cursor-theme-name = "Quintom_Ink";
|
||||
gtk-application-prefer-dark-theme = "true";
|
||||
environment.etc = {
|
||||
"greetd/sway-config" = {
|
||||
text = ''
|
||||
# `-l` activates layer-shell mode. Notice that `swaymsg exit` will run after gtkgreet.
|
||||
exec "${pkgs.greetd.gtkgreet}/bin/gtkgreet -l; swaymsg exit"
|
||||
bindsym Mod4+shift+e exec swaynag \
|
||||
-t warning \
|
||||
-m 'What do you want to do?' \
|
||||
-b 'Poweroff' 'systemctl poweroff' \
|
||||
-b 'Reboot' 'systemctl reboot'
|
||||
include /etc/sway/config.d/*
|
||||
'';
|
||||
user = "greeter";
|
||||
group = "greeter";
|
||||
};
|
||||
"greetd/environments" = {
|
||||
text = ''
|
||||
${pkgs.sway}/bin/sway
|
||||
${pkgs.bash}/bin/bash
|
||||
'';
|
||||
user = "greeter";
|
||||
group = "greeter";
|
||||
};
|
||||
"sway/config.d/systemd-env.conf" = {
|
||||
text = ''
|
||||
exec_always --no-startup-id systemctl --user import-environment _JAVA_AWT_WM_NONREPARENTING MOZ_ENABLE_WAYLAND MOZ_DBUS_REMOTE QT_QPA_PLATFORM QT_WAYLAND_DISABLE_WINDOWDECORATION QT_QPA_PLATFORMTHEME SDL_VIDEODRIVER SSH_AUTH_SOCK
|
||||
exec_always --no-startup-id dbus-update-activation-environment --systemd _JAVA_AWT_WM_NONREPARENTING MOZ_ENABLE_WAYLAND MOZ_DBUS_REMOTE QT_QPA_PLATFORM QT_WAYLAND_DISABLE_WINDOWDECORATION QT_QPA_PLATFORMTHEME SDL_VIDEODRIVER SSH_AUTH_SOCK
|
||||
'';
|
||||
};
|
||||
"xdg/gtk-3.0/settings.ini" = {
|
||||
text = generators.toINI {} {
|
||||
Settings = {
|
||||
gtk-theme-name = "Arc-Dark";
|
||||
gtk-icon-theme-name = "Papirus-Dark";
|
||||
gtk-cursor-theme-name = "Quintom_Ink";
|
||||
gtk-application-prefer-dark-theme = "true";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -25,28 +25,28 @@ in {
|
|||
networking = {
|
||||
networkmanager.enable = true;
|
||||
interfaces = listToAttrs (builtins.map
|
||||
(iface: {
|
||||
name = iface;
|
||||
value = {useDHCP = true;};
|
||||
})
|
||||
cfg.dhcpInterfaces);
|
||||
(iface: {
|
||||
name = iface;
|
||||
value = {useDHCP = true;};
|
||||
})
|
||||
cfg.dhcpInterfaces);
|
||||
hosts = cfg.hosts;
|
||||
|
||||
firewall = {
|
||||
trustedInterfaces = ["lo"];
|
||||
interfaces = listToAttrs (builtins.map
|
||||
(iface: {
|
||||
name = iface;
|
||||
value = {
|
||||
allowedTCPPorts = [
|
||||
# Horus System V2
|
||||
12345
|
||||
5555
|
||||
5556
|
||||
];
|
||||
};
|
||||
})
|
||||
cfg.dhcpInterfaces);
|
||||
(iface: {
|
||||
name = iface;
|
||||
value = {
|
||||
allowedTCPPorts = [
|
||||
# Horus System V2
|
||||
12345
|
||||
5555
|
||||
5556
|
||||
];
|
||||
};
|
||||
})
|
||||
cfg.dhcpInterfaces);
|
||||
};
|
||||
};
|
||||
users.extraUsers.${config.eboskma.var.mainUser}.extraGroups = ["networkmanager"];
|
||||
|
|
|
@ -2,10 +2,11 @@ final: prev: rec {
|
|||
rofi-wayland = prev.pkgs.callPackage ../pkgs/rofi-wayland {};
|
||||
nix-plugins = prev.pkgs.callPackage ../pkgs/nix-plugins {};
|
||||
lunarvim = prev.pkgs.callPackage ../pkgs/lunarvim {};
|
||||
backscrub = prev.pkgs.callPackage ../pkgs/backscrub
|
||||
{
|
||||
inherit (prev.pkgs) gcc cmake opencv curl stdenv git tensorflow-lite flatbuffers;
|
||||
};
|
||||
backscrub =
|
||||
prev.pkgs.callPackage ../pkgs/backscrub
|
||||
{
|
||||
inherit (prev.pkgs) gcc cmake opencv curl stdenv git tensorflow-lite flatbuffers;
|
||||
};
|
||||
onnx-runtime = prev.pkgs.callPackage ../pkgs/onnx-runtime {inherit (prev.pkgs) stdenv;};
|
||||
obs-backgroundremoval = prev.pkgs.callPackage ../pkgs/obs-backgroundremoval {inherit (prev.pkgs) stdenv fetchFromGitHub cmake obs-studio opencv onnx-runtime;};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue