This commit is contained in:
@@ -15,12 +15,12 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: git clone https://git.cyperpunk.de/DerGrumpf/cyper-nix.git .
|
run: git clone https://git.cyperpunk.de/DerGrumpf/cyper-nix.git .
|
||||||
|
|
||||||
|
- name: Format check
|
||||||
|
run: nix fmt -- --ci
|
||||||
|
|
||||||
- name: Nix flake check
|
- name: Nix flake check
|
||||||
run: nix flake check --impure
|
run: nix flake check --impure
|
||||||
|
|
||||||
- name: Format check
|
|
||||||
run: nix fmt -- --check .
|
|
||||||
|
|
||||||
- name: Build NixOS configs (dry-run)
|
- name: Build NixOS configs (dry-run)
|
||||||
run: |
|
run: |
|
||||||
nix build .#nixosConfigurations.cyper-desktop.config.system.build.toplevel --dry-run
|
nix build .#nixosConfigurations.cyper-desktop.config.system.build.toplevel --dry-run
|
||||||
|
|||||||
@@ -271,6 +271,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
|
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-tree;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,110 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
|
||||||
services.swaync = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
positionX = "center";
|
|
||||||
positionY = "center";
|
|
||||||
layer = "overlay";
|
|
||||||
control-center-layer = "top";
|
|
||||||
layer-shell = true;
|
|
||||||
cssPriority = "user";
|
|
||||||
control-center-margin-top = 100;
|
|
||||||
control-center-margin-bottom = 200;
|
|
||||||
control-center-margin-right = 0;
|
|
||||||
control-center-margin-left = 0;
|
|
||||||
notification-2fa-action = true;
|
|
||||||
notification-inline-replies = false;
|
|
||||||
notification-icon-size = 64;
|
|
||||||
notification-body-image-height = 100;
|
|
||||||
notification-body-image-width = 200;
|
|
||||||
widgets = [
|
|
||||||
"mpris"
|
|
||||||
"volume"
|
|
||||||
"inhibitors"
|
|
||||||
"title"
|
|
||||||
"dnd"
|
|
||||||
"notifications"
|
|
||||||
];
|
|
||||||
widget-config = {
|
|
||||||
|
|
||||||
mpris = {
|
|
||||||
blacklist = [ ];
|
|
||||||
autohide = false;
|
|
||||||
show-album-art = "always";
|
|
||||||
loop-carousel = false;
|
|
||||||
image-size = 96;
|
|
||||||
image-radius = 12;
|
|
||||||
};
|
|
||||||
|
|
||||||
volume = {
|
|
||||||
label = "gain";
|
|
||||||
show-per-app = false;
|
|
||||||
empty-list-label = "Nothin' is playin'";
|
|
||||||
expand-button-label = "⤢";
|
|
||||||
collaps-button-label = "⤡";
|
|
||||||
};
|
|
||||||
|
|
||||||
title = {
|
|
||||||
text = "Hollerin'";
|
|
||||||
clear-all-button = true;
|
|
||||||
button-text = "Sheriff's Pardon";
|
|
||||||
};
|
|
||||||
|
|
||||||
dnd = {
|
|
||||||
text = "Let'er rest";
|
|
||||||
};
|
|
||||||
|
|
||||||
menubar = {
|
|
||||||
"menu#power" = {
|
|
||||||
label = "Power";
|
|
||||||
position = "right";
|
|
||||||
animation-type = "slide_down";
|
|
||||||
animation-duration = 250;
|
|
||||||
actions = [
|
|
||||||
{
|
|
||||||
label = "Bolt It";
|
|
||||||
command = "hyprlock";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
label = "Ride Out";
|
|
||||||
command = "hyprctl dispatch exit";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
label = "Circle Back";
|
|
||||||
command = "systemctl reboot";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
label = "Bet Down the Horses";
|
|
||||||
command = "systemctl poweroff";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
"buttons#media" = {
|
|
||||||
position = "left";
|
|
||||||
actions = [
|
|
||||||
{
|
|
||||||
label = "Play/Pause";
|
|
||||||
command = "playerctl play-pause";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
label = "Next";
|
|
||||||
command = "playerctl next";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
label = "Previous";
|
|
||||||
command = "playerctl previous";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
notifications = {
|
|
||||||
vexpand = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,6 +1,11 @@
|
|||||||
{ pkgs, lib, ... }: {
|
{ pkgs, lib, ... }: {
|
||||||
home.packages =
|
home.packages = lib.mkIf (!pkgs.stdenv.isDarwin) (
|
||||||
lib.mkIf (!pkgs.stdenv.isDarwin) (with pkgs; [ rofi-power-menu rofi-calc ]);
|
with pkgs;
|
||||||
|
[
|
||||||
|
rofi-power-menu
|
||||||
|
rofi-calc
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
programs.rofi = lib.mkIf (!pkgs.stdenv.isDarwin) {
|
programs.rofi = lib.mkIf (!pkgs.stdenv.isDarwin) {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
{ pkgs, lib, isDarwin, ... }: {
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
isDarwin,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
programs.sketchybar = lib.mkIf isDarwin {
|
programs.sketchybar = lib.mkIf isDarwin {
|
||||||
enable = true;
|
enable = true;
|
||||||
configType = "lua";
|
configType = "lua";
|
||||||
|
|||||||
@@ -1,8 +1,17 @@
|
|||||||
{ pkgs, lib, compositor ? "hyprland", ... }: {
|
{
|
||||||
programs.waybar = lib.mkIf (!pkgs.stdenv.isDarwin) ({
|
pkgs,
|
||||||
enable = true;
|
lib,
|
||||||
package = pkgs.waybar;
|
compositor ? "hyprland",
|
||||||
} // (import ./dual.nix { inherit compositor; }));
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
programs.waybar = lib.mkIf (!pkgs.stdenv.isDarwin) (
|
||||||
|
{
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.waybar;
|
||||||
|
}
|
||||||
|
// (import ./dual.nix { inherit compositor; })
|
||||||
|
);
|
||||||
|
|
||||||
home.packages = lib.mkIf (!pkgs.stdenv.isDarwin) (with pkgs; [ cava ]);
|
home.packages = lib.mkIf (!pkgs.stdenv.isDarwin) (with pkgs; [ cava ]);
|
||||||
|
|
||||||
|
|||||||
+37
-8
@@ -46,10 +46,14 @@
|
|||||||
{
|
{
|
||||||
type = "button";
|
type = "button";
|
||||||
val = "[+] New file";
|
val = "[+] New file";
|
||||||
on_press.__raw =
|
on_press.__raw = "function() vim.cmd[[ene]] vim.cmd[[startinsert]] end";
|
||||||
"function() vim.cmd[[ene]] vim.cmd[[startinsert]] end";
|
|
||||||
opts = {
|
opts = {
|
||||||
keymap = [ "n" "e" ":ene <BAR> startinsert <CR>" { } ];
|
keymap = [
|
||||||
|
"n"
|
||||||
|
"e"
|
||||||
|
":ene <BAR> startinsert <CR>"
|
||||||
|
{ }
|
||||||
|
];
|
||||||
shortcut = "e";
|
shortcut = "e";
|
||||||
position = "center";
|
position = "center";
|
||||||
cursor = 3;
|
cursor = 3;
|
||||||
@@ -63,7 +67,12 @@
|
|||||||
val = "[?] Find file";
|
val = "[?] Find file";
|
||||||
on_press.__raw = "function() vim.cmd[[Telescope find_files]] end";
|
on_press.__raw = "function() vim.cmd[[Telescope find_files]] end";
|
||||||
opts = {
|
opts = {
|
||||||
keymap = [ "n" "f" ":Telescope find_files <CR>" { } ];
|
keymap = [
|
||||||
|
"n"
|
||||||
|
"f"
|
||||||
|
":Telescope find_files <CR>"
|
||||||
|
{ }
|
||||||
|
];
|
||||||
shortcut = "f";
|
shortcut = "f";
|
||||||
position = "center";
|
position = "center";
|
||||||
cursor = 3;
|
cursor = 3;
|
||||||
@@ -77,7 +86,12 @@
|
|||||||
val = "[~] Recent files";
|
val = "[~] Recent files";
|
||||||
on_press.__raw = "function() vim.cmd[[Telescope oldfiles]] end";
|
on_press.__raw = "function() vim.cmd[[Telescope oldfiles]] end";
|
||||||
opts = {
|
opts = {
|
||||||
keymap = [ "n" "r" ":Telescope oldfiles <CR>" { } ];
|
keymap = [
|
||||||
|
"n"
|
||||||
|
"r"
|
||||||
|
":Telescope oldfiles <CR>"
|
||||||
|
{ }
|
||||||
|
];
|
||||||
shortcut = "r";
|
shortcut = "r";
|
||||||
position = "center";
|
position = "center";
|
||||||
cursor = 3;
|
cursor = 3;
|
||||||
@@ -91,7 +105,12 @@
|
|||||||
val = "[Y] Yazi";
|
val = "[Y] Yazi";
|
||||||
on_press.__raw = "function() require('yazi').yazi() end";
|
on_press.__raw = "function() require('yazi').yazi() end";
|
||||||
opts = {
|
opts = {
|
||||||
keymap = [ "n" "y" ":Yazi<CR>" { } ];
|
keymap = [
|
||||||
|
"n"
|
||||||
|
"y"
|
||||||
|
":Yazi<CR>"
|
||||||
|
{ }
|
||||||
|
];
|
||||||
shortcut = "y";
|
shortcut = "y";
|
||||||
position = "center";
|
position = "center";
|
||||||
cursor = 3;
|
cursor = 3;
|
||||||
@@ -105,7 +124,12 @@
|
|||||||
val = "[A] Open Prompt";
|
val = "[A] Open Prompt";
|
||||||
#on_press.__raw = "function() require('yazi').yazi() end";
|
#on_press.__raw = "function() require('yazi').yazi() end";
|
||||||
opts = {
|
opts = {
|
||||||
keymap = [ "n" "a" ":AvanteChatNew<CR>" { } ];
|
keymap = [
|
||||||
|
"n"
|
||||||
|
"a"
|
||||||
|
":AvanteChatNew<CR>"
|
||||||
|
{ }
|
||||||
|
];
|
||||||
shortcut = "a";
|
shortcut = "a";
|
||||||
position = "center";
|
position = "center";
|
||||||
cursor = 3;
|
cursor = 3;
|
||||||
@@ -119,7 +143,12 @@
|
|||||||
val = "[X] Quit";
|
val = "[X] Quit";
|
||||||
on_press.__raw = "function() vim.cmd[[qa]] end";
|
on_press.__raw = "function() vim.cmd[[qa]] end";
|
||||||
opts = {
|
opts = {
|
||||||
keymap = [ "n" "q" ":qa<CR>" { } ];
|
keymap = [
|
||||||
|
"n"
|
||||||
|
"q"
|
||||||
|
":qa<CR>"
|
||||||
|
{ }
|
||||||
|
];
|
||||||
shortcut = "q";
|
shortcut = "q";
|
||||||
position = "center";
|
position = "center";
|
||||||
cursor = 3;
|
cursor = 3;
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
programs.nixvim = lib.mkIf (!isDarwin) {
|
programs.nixvim = lib.mkIf (!isDarwin) {
|
||||||
plugins.molten = {
|
plugins.molten = {
|
||||||
enable = true;
|
enable = true;
|
||||||
python3Dependencies = p:
|
python3Dependencies =
|
||||||
with p; [
|
p: with p; [
|
||||||
pynvim
|
pynvim
|
||||||
jupyter-client
|
jupyter-client
|
||||||
cairosvg
|
cairosvg
|
||||||
|
|||||||
+1
-2
@@ -1,4 +1,3 @@
|
|||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
programs.onlyoffice =
|
programs.onlyoffice = pkgs.lib.mkIf (!pkgs.stdenv.isDarwin) { enable = true; };
|
||||||
pkgs.lib.mkIf (!pkgs.stdenv.isDarwin) { enable = true; };
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,38 +5,41 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
loader.grub = {
|
loader.grub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
device = "/dev/vda";
|
device = "/dev/vda";
|
||||||
};
|
};
|
||||||
|
|
||||||
initrd = {
|
initrd = {
|
||||||
availableKernelModules = [
|
availableKernelModules = [
|
||||||
"ata_piix"
|
"ata_piix"
|
||||||
"virtio_pci"
|
"virtio_pci"
|
||||||
"virtio_scsi"
|
"virtio_scsi"
|
||||||
"virtio_blk"
|
"virtio_blk"
|
||||||
"xhci_pci"
|
"xhci_pci"
|
||||||
"sr_mod"
|
"sr_mod"
|
||||||
];
|
];
|
||||||
kernelModules = [ ];
|
kernelModules = [ ];
|
||||||
};
|
};
|
||||||
kernelModules = [ ];
|
kernelModules = [ ];
|
||||||
extraModulePackages = [ ];
|
extraModulePackages = [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
"/" = {
|
"/" = {
|
||||||
device = "/dev/disk/by-label/NIXROOT";
|
device = "/dev/disk/by-label/NIXROOT";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
"/boot" = {
|
"/boot" = {
|
||||||
device = "/dev/disk/by-label/NIXBOOT";
|
device = "/dev/disk/by-label/NIXBOOT";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
options = [
|
||||||
|
"fmask=0022"
|
||||||
|
"dmask=0022"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
|||||||
@@ -12,9 +12,5 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
accent = "sapphire";
|
accent = "sapphire";
|
||||||
};
|
};
|
||||||
fcitx5.enable = false;
|
|
||||||
forgejo.enable = false;
|
|
||||||
gitea.enable = false;
|
|
||||||
sddm.enable = false;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,6 +85,8 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [ git ];
|
||||||
|
|
||||||
security = lib.mkIf (!isServer) {
|
security = lib.mkIf (!isServer) {
|
||||||
pam.services.swaylock = { };
|
pam.services.swaylock = { };
|
||||||
polkit.enable = true;
|
polkit.enable = true;
|
||||||
|
|||||||
@@ -210,17 +210,18 @@ in
|
|||||||
tokenFile = config.sops.secrets."gitea/runnerToken".path;
|
tokenFile = config.sops.secrets."gitea/runnerToken".path;
|
||||||
name = "cyper-controller";
|
name = "cyper-controller";
|
||||||
labels = [ "nix:host" ];
|
labels = [ "nix:host" ];
|
||||||
|
|
||||||
hostPackages = with pkgs; [
|
hostPackages = with pkgs; [
|
||||||
nodejs
|
|
||||||
git
|
|
||||||
nix
|
|
||||||
bash
|
bash
|
||||||
|
coreutils
|
||||||
|
curl
|
||||||
|
gawk
|
||||||
|
gitMinimal
|
||||||
|
gnused
|
||||||
|
nodejs
|
||||||
|
wget
|
||||||
|
nix
|
||||||
];
|
];
|
||||||
settings = {
|
|
||||||
runner.env_vars = {
|
|
||||||
PATH = "/run/wrappers/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/usr/bin:/bin";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user