summaryrefslogtreecommitdiff
path: root/profiles/station
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/station')
-rw-r--r--profiles/station/mpv.nix7
-rw-r--r--profiles/station/music.nix4
-rw-r--r--profiles/station/newsboat.nix1
-rw-r--r--profiles/station/nonfree.nix4
-rw-r--r--profiles/station/packages.nix32
-rw-r--r--profiles/station/suckless.nix10
-rw-r--r--profiles/station/virtualisation.nix26
7 files changed, 39 insertions, 45 deletions
diff --git a/profiles/station/mpv.nix b/profiles/station/mpv.nix
index 8271c2f..46baf96 100644
--- a/profiles/station/mpv.nix
+++ b/profiles/station/mpv.nix
@@ -1,11 +1,12 @@
-
{
+ machine,
pkgs,
+ lib,
...
-}: {
+}: lib.mkIf (!machine.isDarwin) {
hm = {
programs.mpv = {
- enable = !pkgs.stdenv.isDarwin;
+ enable = true;
scripts = [
(with pkgs; stdenv.mkDerivation {
pname = "mpv-sockets";
diff --git a/profiles/station/music.nix b/profiles/station/music.nix
index 7503ac4..78ed655 100644
--- a/profiles/station/music.nix
+++ b/profiles/station/music.nix
@@ -1,9 +1,9 @@
-{ config, pkgs, lib, ... }: {
+{ machine, config, pkgs, lib, ... }: with lib; mkIf (!machine.isDarwin) {
# TODO: what about secrets on nix-darwin...
# secrets.mopidy.owner = lib.ivi.username;
hm.home.packages = [pkgs.mpc-cli];
hm.services.mopidy = {
- enable = !pkgs.stdenv.isDarwin;
+ enable = true;
extensionPackages = with pkgs; [mopidy-spotify mopidy-mpd];
settings = {
mpd = {
diff --git a/profiles/station/newsboat.nix b/profiles/station/newsboat.nix
index e9ae445..2def1d7 100644
--- a/profiles/station/newsboat.nix
+++ b/profiles/station/newsboat.nix
@@ -4,6 +4,7 @@
enable = true;
autoReload = true;
urls = [
+ {url = "https://nginx.org/index.rss";}
{url = "https://github.com/neovim/neovim/releases.atom";}
{url = "https://github.com/rancher/rancher/releases.atom";}
{url = "https://github.com/istio/istio/releases.atom";}
diff --git a/profiles/station/nonfree.nix b/profiles/station/nonfree.nix
index 4f0c83c..1dd91d1 100644
--- a/profiles/station/nonfree.nix
+++ b/profiles/station/nonfree.nix
@@ -7,7 +7,7 @@
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
# Add additional package names here
- "teams-1.6.00.4464"
+ "teams"
"discord"
"discord-ptb"
"discord-canary"
@@ -18,7 +18,7 @@
"steam-run"
];
- programs = optionalAttrs (!pkgs.stdenv.isDarwin) {
+ programs = {
steam = {
enable = true;
remotePlay.openFirewall = true;
diff --git a/profiles/station/packages.nix b/profiles/station/packages.nix
index e823fb8..4116e70 100644
--- a/profiles/station/packages.nix
+++ b/profiles/station/packages.nix
@@ -1,35 +1,29 @@
{
+ machine,
pkgs,
lib,
...
}: with lib; {
hm = {
home.packages = with pkgs; [
- (nerdfonts.override {fonts = ["FiraCode"];})
- noto-fonts
- noto-fonts-emoji
- k9s
- krew
- dasel
+ (nerdfonts.override {fonts = ["FiraCode" "JetBrainsMono"];})
python311Packages.editorconfig
- gcc
- gnumake
calcurse
- file
- ueberzug
- pstree
- pywal
bashInteractive
powershell
+
+ k9s
+ krew
azure-cli
- alejandra
- statix
github-cli
- lazygit
argocd
- bc
- nushell
- ] ++ optionals (!pkgs.stdenv.isDarwin) [
+ (google-cloud-sdk.withExtraComponents (with google-cloud-sdk.components; [
+ gke-gcloud-auth-plugin
+ ]))
+ ] ++ optionals (!machine.isDarwin) [
+ pywal
+ dasel
+ ueberzug
inotify-tools
raylib
maim
@@ -39,8 +33,6 @@
sxiv
sent
initool
- pkgsi686Linux.glibc
- gdb
dmenu
librewolf
firefox-wayland
diff --git a/profiles/station/suckless.nix b/profiles/station/suckless.nix
index d3941d9..36a299f 100644
--- a/profiles/station/suckless.nix
+++ b/profiles/station/suckless.nix
@@ -3,12 +3,13 @@
config,
pkgs,
lib,
+ machine,
...
-}: with lib; {
+}: with lib; mkIf (!machine.isDarwin) {
nixpkgs.overlays = [(import (self + "/overlays/suckless.nix") {inherit pkgs; home = config.ivi.home;})];
hm = {
xsession = {
- enable = !pkgs.stdenv.isDarwin;
+ enable = true;
initExtra = ''
${pkgs.xorg.xmodmap}/bin/xmodmap -e "remove mod1 = Alt_R"
${pkgs.xorg.xmodmap}/bin/xmodmap -e "add mod3 = Alt_R"
@@ -18,7 +19,7 @@
'';
};
services.picom = {
- enable = !pkgs.stdenv.isDarwin;
+ enable = true;
activeOpacity = 0.99;
inactiveOpacity = 0.7;
opacityRules = [
@@ -37,7 +38,7 @@
};
};
services.dunst = {
- enable = !pkgs.stdenv.isDarwin;
+ enable = true;
settings = {
global = {
monitor = 0;
@@ -71,7 +72,6 @@
};
home.packages = with pkgs; [
libnotify
- ] ++ optionals (!pkgs.stdenv.isDarwin) [
st
dwm
dwmblocks
diff --git a/profiles/station/virtualisation.nix b/profiles/station/virtualisation.nix
index 4e9425e..5646562 100644
--- a/profiles/station/virtualisation.nix
+++ b/profiles/station/virtualisation.nix
@@ -1,14 +1,14 @@
-{ pkgs, ... }: {
- # environment.systemPackages = with pkgs; [
- # virt-viewer
- # ];
- # virtualisation.libvirtd.enable = true;
- # programs.virt-manager.enable = true;
- # hm.dconf.settings = {
- # "org/virt-manager/virt-manager/connections" = {
- # autoconnect = ["qemu:///system"];
- # uris = ["qemu:///system"];
- # };
- # };
- # ivi.extraGroups = [ "libvirtd" ];
+{ pkgs, lib, ... }: with lib; {
+ environment.systemPackages = with pkgs; mkIf (!pkgs.stdenv.isDarwin) [
+ virt-viewer
+ ];
+ virtualisation.libvirtd.enable = true;
+ programs.virt-manager.enable = true;
+ hm.dconf.settings = {
+ "org/virt-manager/virt-manager/connections" = {
+ autoconnect = ["qemu:///system"];
+ uris = ["qemu:///system"];
+ };
+ };
+ ivi.extraGroups = [ "libvirtd" ];
}