Compare commits
No commits in common. "c53ff86cb4edda20f32c019e1b2b1a27b7eb6ccb" and "bc4b9f49d6b3c5b896937a8271fb082ac9cbfcdf" have entirely different histories.
c53ff86cb4
...
bc4b9f49d6
8 changed files with 8 additions and 51 deletions
16
flake.lock
generated
16
flake.lock
generated
|
@ -319,21 +319,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nix-flatpak": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1732304879,
|
|
||||||
"narHash": "sha256-/DOW8VadE//HA6tuV2++NowYWi7Wa/FmJHXRJoTQnfQ=",
|
|
||||||
"owner": "gmodena",
|
|
||||||
"repo": "nix-flatpak",
|
|
||||||
"rev": "c84579946c03c996916be0fb6e1340f444c277af",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "gmodena",
|
|
||||||
"repo": "nix-flatpak",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nix-pre-commit": {
|
"nix-pre-commit": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
|
@ -520,7 +505,6 @@
|
||||||
"catppuccin-vsc": "catppuccin-vsc",
|
"catppuccin-vsc": "catppuccin-vsc",
|
||||||
"compose2nix": "compose2nix",
|
"compose2nix": "compose2nix",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nix-flatpak": "nix-flatpak",
|
|
||||||
"nix-vscode-extensions": "nix-vscode-extensions",
|
"nix-vscode-extensions": "nix-vscode-extensions",
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs_3",
|
||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
url = "github:nix-community/home-manager/master";
|
url = "github:nix-community/home-manager/master";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
nix-flatpak.url = "github:gmodena/nix-flatpak";
|
|
||||||
nixvim = {
|
nixvim = {
|
||||||
url = "github:nix-community/nixvim";
|
url = "github:nix-community/nixvim";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
@ -45,7 +44,6 @@
|
||||||
./nixos/configuration.nix
|
./nixos/configuration.nix
|
||||||
./nixos/development.nix
|
./nixos/development.nix
|
||||||
./nixos/environment.nix
|
./nixos/environment.nix
|
||||||
./nixos/flatpak.nix
|
|
||||||
./nixos/gaming.nix
|
./nixos/gaming.nix
|
||||||
./nixos/git.nix
|
./nixos/git.nix
|
||||||
./nixos/gui-pkgs.nix
|
./nixos/gui-pkgs.nix
|
||||||
|
@ -62,7 +60,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
inputs.nixvim.nixosModules.nixvim
|
inputs.nixvim.nixosModules.nixvim
|
||||||
inputs.nix-flatpak.nixosModules.nix-flatpak
|
|
||||||
|
|
||||||
# Catppuccin theme
|
# Catppuccin theme
|
||||||
inputs.catppuccin.nixosModules.catppuccin
|
inputs.catppuccin.nixosModules.catppuccin
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{ lib, ... }: {
|
{ lib, ... }: {
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
PATH = "$PATH:/etc/nixos/scripts";
|
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
VISUAL = "code";
|
VISUAL = "code";
|
||||||
|
|
||||||
|
@ -17,6 +16,6 @@
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
# Enable Ozone Wayland support in Chromium and Electron applications
|
# Enable Ozone Wayland support in Chromium and Electron applications
|
||||||
#TODO - This causes issues with VSCode until the November 2024 release.
|
#TODO - This causes issues with VSCode until the November 2024 release.
|
||||||
NIXOS_OZONE_WL = lib.mkDefault "";
|
# NIXOS_OZONE_WL = lib.mkDefault "1";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
{
|
|
||||||
services.flatpak = {
|
|
||||||
enable = true;
|
|
||||||
packages = [
|
|
||||||
{ flatpakref = "https://sober.vinegarhq.org/sober.flatpakref"; sha256 = "1pj8y1xhiwgbnhrr3yr3ybpfis9slrl73i0b1lc9q89vhip6ym2l"; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
let
|
|
||||||
nixpkgs = fetchTarball
|
|
||||||
"https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
|
|
||||||
pkgs = import nixpkgs {
|
|
||||||
config = { };
|
|
||||||
overlays = [ ];
|
|
||||||
};
|
|
||||||
in pkgs.mkShellNoCC {
|
|
||||||
packages = with pkgs; [
|
|
||||||
libnotify
|
|
||||||
python312
|
|
||||||
python312Packages.requests
|
|
||||||
python312Packages.pyperclip
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -30,10 +30,10 @@ def notify(
|
||||||
|
|
||||||
|
|
||||||
def read_secret_file(secret: str) -> str:
|
def read_secret_file(secret: str) -> str:
|
||||||
path = f"/var/secrets/{secret}"
|
path = f"/run/secrets/{secret}"
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
raise FileNotFoundError(f"Secret file {path} does not exist or cannot be read.")
|
raise FileNotFoundError(f"Secret file {path} does not exist.")
|
||||||
with open(f"/var/secrets/{secret}", "r") as f:
|
with open(f"/run/secrets/{secret}", "r") as f:
|
||||||
secret = f.read().strip()
|
secret = f.read().strip()
|
||||||
if not secret:
|
if not secret:
|
||||||
raise ValueError(f"Secret file {path} is empty.")
|
raise ValueError(f"Secret file {path} is empty.")
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#! /usr/bin/env nix-shell
|
#! /usr/bin/env nix-shell
|
||||||
#! nix-shell /etc/nixos/nixos/script-dependencies.nix -i python
|
#! nix-shell -i python -p python312 libnotify
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
|
@ -73,7 +73,7 @@ def spectacle_screenshot(
|
||||||
finally:
|
finally:
|
||||||
if Path(file_path).exists() and use_temp_file:
|
if Path(file_path).exists() and use_temp_file:
|
||||||
os.remove(file_path)
|
os.remove(file_path)
|
||||||
except BaseException as e:
|
except Exception as e:
|
||||||
notify(
|
notify(
|
||||||
application_name="Spectacle",
|
application_name="Spectacle",
|
||||||
title="An error occurred",
|
title="An error occurred",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#! /usr/bin/env nix-shell
|
#! /usr/bin/env nix-shell
|
||||||
#! nix-shell /etc/nixos/nixos/script-dependencies.nix -i python
|
#! nix-shell -i python -p python312 python312Packages.pyperclip python312Packages.requests libnotify
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import mimetypes
|
import mimetypes
|
||||||
|
@ -66,7 +66,7 @@ def zipline(
|
||||||
error_message = response.text
|
error_message = response.text
|
||||||
raise Exception(error_message)
|
raise Exception(error_message)
|
||||||
|
|
||||||
except BaseException as e:
|
except Exception as e:
|
||||||
if use_notify_send:
|
if use_notify_send:
|
||||||
notify(
|
notify(
|
||||||
application_name=application_name,
|
application_name=application_name,
|
||||||
|
|
Loading…
Add table
Reference in a new issue