Added trenchbroom and fixed flatpaks not appearing in wofi

main
Johannes Hendrik Gerard van der Weide 2024-02-11 22:33:32 +01:00
parent f710aac0c3
commit 0a789b7418
5 changed files with 35 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ config, pkgs, inputs, ... }: { config, pkgs, inputs, nix-flatpak, ... }:
let let
mini-text = pkgs.callPackage ../../Programs/MiniText { }; mini-text = pkgs.callPackage ../../Programs/MiniText { };
hyperplane = pkgs.callPackage ../../Programs/Hyperplane { }; hyperplane = pkgs.callPackage ../../Programs/Hyperplane { };
@ -16,6 +16,13 @@ in
pkgs.ibm-plex pkgs.ibm-plex
]; ];
services.flatpak = {
enable = true;
packages = [
"com.kristianduske.TrenchBroom"
];
};
environment = { environment = {
# Systemwide installed packages # Systemwide installed packages
systemPackages = with pkgs; [ systemPackages = with pkgs; [
@ -23,7 +30,6 @@ in
gnome.gnome-control-center gnome.gnome-control-center
gnome.nautilus gnome.nautilus
gnome.file-roller gnome.file-roller
swaybg
alacritty alacritty
gnome-text-editor gnome-text-editor
warp warp
@ -31,6 +37,10 @@ in
pamixer pamixer
hyperplane hyperplane
mini-text mini-text
# Sway nees this
swaybg
xdg-desktop-portal
xdg-desktop-portal-wlr
]; ];
}; };
} }

View File

@ -140,6 +140,8 @@ in
terminal = "alacritty"; terminal = "alacritty";
menu = "wofi --show drun"; menu = "wofi --show drun";
startup = [ startup = [
{command = "exec --no-startup-id /usr/lib/xdg-desktop-portal -r";}
{command = "export XDG_CURRENT_DESKTOP=sway";}
{command = "export QT_QPA_PLATFORM=wayland";} {command = "export QT_QPA_PLATFORM=wayland";}
{command = "swaybg -i /etc/nixos/Assets/background.svg";} {command = "swaybg -i /etc/nixos/Assets/background.svg";}
{command = "keepassxc /home/hertog/Documents/Belangrijk/Wachtwoorden.kdbx";} {command = "keepassxc /home/hertog/Documents/Belangrijk/Wachtwoorden.kdbx";}

View File

@ -13,6 +13,7 @@
update = "sudo nixos-rebuild switch --flake /etc/nixos/#laptop"; update = "sudo nixos-rebuild switch --flake /etc/nixos/#laptop";
vim = "nix run git+https://git.saragerretsen.nl/Hertog/HertogVim"; vim = "nix run git+https://git.saragerretsen.nl/Hertog/HertogVim";
vimUpdate = "nix run --refresh git+https://git.saragerretsen.nl/Hertog/HertogVim"; vimUpdate = "nix run --refresh git+https://git.saragerretsen.nl/Hertog/HertogVim";
sudovim = "sudo nix run git+https://git.saragerretsen.nl/Hertog/HertogVim";
}; };
plugins = [ plugins = [
{ {

View File

@ -39,6 +39,21 @@
"url": "https://iceshrimp.dev/iceshrimp/packaging" "url": "https://iceshrimp.dev/iceshrimp/packaging"
} }
}, },
"nix-flatpak": {
"locked": {
"lastModified": 1707510453,
"narHash": "sha256-5mDsmJvY/GmGAlVF4VvYoTmXYQAbHEUNbV3LFiXkLls=",
"owner": "gmodena",
"repo": "nix-flatpak",
"rev": "739d714ec57470efd5d391f1e9963b9b3d94305f",
"type": "github"
},
"original": {
"owner": "gmodena",
"repo": "nix-flatpak",
"type": "github"
}
},
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1702453208, "lastModified": 1702453208,
@ -90,6 +105,7 @@
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"iceshrimp": "iceshrimp", "iceshrimp": "iceshrimp",
"nix-flatpak": "nix-flatpak",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
} }

View File

@ -3,6 +3,7 @@
inputs = { inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable"; nixpkgs.url = "nixpkgs/nixos-unstable";
nix-flatpak.url = "github:gmodena/nix-flatpak";
home-manager = { home-manager = {
url = "github:nix-community/home-manager/master"; url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -15,7 +16,7 @@
}; };
}; };
outputs = { self, nixpkgs, home-manager, iceshrimp, nixos-hardware, ... }@inputs: outputs = { self, nixpkgs, nix-flatpak, home-manager, iceshrimp, nixos-hardware, ... }@inputs:
let let
system = "x86_64-linux"; system = "x86_64-linux";
currentSystem = system; currentSystem = system;
@ -43,6 +44,8 @@
./System/audio.nix ./System/audio.nix
# Appliances is where printer support is enabled but also things like flipperzero flashing # Appliances is where printer support is enabled but also things like flipperzero flashing
./System/appliances.nix ./System/appliances.nix
# Needed to install flatpaks decleratively
nix-flatpak.nixosModules.nix-flatpak
# Systemwide installed pacakges userpackages are set through home-manager # Systemwide installed pacakges userpackages are set through home-manager
./System/packages.nix ./System/packages.nix
./Programs/steam.nix ./Programs/steam.nix