Skip to content

Commit

Permalink
update flake
Browse files Browse the repository at this point in the history
Signed-off-by: misilelab <[email protected]>
  • Loading branch information
MisileLab committed May 26, 2024
1 parent c4da118 commit 64262d1
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 17 deletions.
5 changes: 3 additions & 2 deletions projects/dsb/nix-configs/home-manager/apps/desktop/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
];
home = {
# https://github.com/NixOS/nixpkgs/issues/313548
# https://hydra.nixos.org/job/nixos/release-24.05/nixpkgs.onionshare-gui.x86_64-linux
packages = with pkgs; [
brightnessctl clipman wl-clipboard pavucontrol
imagemagick virt-manager gimp onionshare-gui appflowy firefoxpwa
imagemagick virt-manager gimp /* onionshare-gui */ appflowy firefoxpwa
/*exodus galaxy-buds-client*/ ferium prismlauncher qemu telegram-desktop
];
file = {
Expand All @@ -20,7 +21,7 @@
}}/themes/Mocha/Catppuccin-Mocha.zip";
".config/obs-studio/themes/Catppuccin Mocha.qss".source = config.lib.file.mkOutOfStoreSymlink "${builtins.fetchGit {
url="https://github.com/catppuccin/obs";
rev="9a78d89d186afbdcc719a1cb7bbf7fb1c2fdd248";
rev="e7c4fcf387415a20cb747121bc0416c4c8ae3362";
}}";
};
pointerCursor = {
Expand Down
12 changes: 10 additions & 2 deletions projects/dsb/nix-configs/home-manager/apps/desktop/sway.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,23 @@ in
bindsym Mod4+y exec ${pkgs.clipman}/bin/clipman pick --tool="rofi" --max-items=30
bindsym Mod4+shift+y exec ${pkgs.swayfx}/bin/swaynag --type warning -m 'You want to clear clipboard?' -b 'Yes' 'exec ${pkgs.clipman}/bin/clipman clear --all'
exec "${pkgs.avizo}/bin/avizo-service"
'';
config = {
bars = [];
startup = [
{command =
''
${pkgs.swayidle}/bin/swayidle -w \
timeout 60 '${pkgs.swaylock}/bin/swaylock -f' \
timeout 90 "${pkgs.swayfx}/bin/swaymsg 'output * dpms off'" \
resume "${pkgs.swayfx}/bin/swaymsg 'output * dpms on'" \
before-sleep '${pkgs.swaylock}/bin/swaylock -f' \
lock '${pkgs.swaylock}/bin/swaylock -f'
'';}
{command = "${pkgs.waybar}/bin/waybar";}
{command = "${pkgs.swaybg}/bin/swaybg --image ~/.config/home-manager/bg.png";}
{command = "${pkgs.wl-clipboard}/bin/wl-paste -t text --watch ${pkgs.clipman}/bin/clipman store --no-persist";}
{command = "${pkgs.avizo}/bin/avizo-service";}
];
menu = "${pkgs.rofi-wayland}/bin/rofi -show drun";
terminal = "${pkgs.alacritty}/bin/alacritty";
Expand Down
2 changes: 1 addition & 1 deletion projects/dsb/nix-configs/home-manager/apps/development.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
file = {
"non-nixos-things/catppuccin-ghidra".source = config.lib.file.mkOutOfStoreSymlink "${builtins.fetchGit{
url="https://github.com/StanlsSlav/ghidra";
rev="f783b5e15836964e720371c0da81819577dd2614";
rev="c7e5781c3485912f49c7e4ebf469bb474ffd7d62";
}}";
};
};
Expand Down
13 changes: 7 additions & 6 deletions projects/dsb/nix-configs/home-manager/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion projects/dsb/nix-configs/home-manager/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description = "Home Manager configuration of misile";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
# unstablepkgs.url = "github:nixos/nixpkgs/nixos-unstable";
catppuccin.url = "github:catppuccin/nix";
home-manager = {
Expand Down
14 changes: 12 additions & 2 deletions projects/dsb/nix-configs/system/applications/yubikey.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@
};

services = {
udev.packages = [ pkgs.yubikey-personalization ];
udev = {
packages = [ pkgs.yubikey-personalization ];
extraRules = ''
ACTION=="remove",\
ENV{ID_BUS}=="usb",\
ENV{ID_MODEL_ID}=="0407",\
ENV{ID_VENDOR_ID}=="1050",\
ENV{ID_VENDOR}=="Yubico",\
RUN+="${pkgs.systemd}/bin/loginctl lock-sessions"
'';
};
};
}
}
6 changes: 3 additions & 3 deletions projects/dsb/nix-configs/system/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions projects/dsb/ppts/ana/fastapi1/.env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BASE_URL="/fastapi1"
1 change: 1 addition & 0 deletions projects/dsb/ppts/ana/fastapi2/.env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BASE_URL="/fastapi2"

0 comments on commit 64262d1

Please sign in to comment.