Move allowUnfree to allowUnfreePredicate

Add ferdium and window rule

Move waybar overlay into hyprland expression
This commit is contained in:
Evie Litherland-Smith 2023-09-21 08:51:07 +01:00
parent e18ac3f354
commit 039cab92de
7 changed files with 19 additions and 21 deletions

View file

@ -93,17 +93,6 @@
, homeModules ? default.homeModules, stateVersion ? default.stateVersion , homeModules ? default.homeModules, stateVersion ? default.stateVersion
}: }:
let let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [
(final: prev: {
waybar = prev.waybar.overrideAttrs (oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
});
})
];
};
specialArgs = { specialArgs = {
inherit hostName user group; inherit hostName user group;
inherit (inputs) hyprland; inherit (inputs) hyprland;
@ -112,7 +101,7 @@
inherit wallpapers catppuccin-themes; inherit wallpapers catppuccin-themes;
inherit (inputs) doom-emacs gitui; inherit (inputs) doom-emacs gitui;
}; };
commonModule = { commonModule = { pkgs, ... }: {
nix = { nix = {
settings = { settings = {
experimental-features = [ "nix-command" "flakes" ]; experimental-features = [ "nix-command" "flakes" ];
@ -203,7 +192,7 @@
}; };
}; };
in nixpkgs.lib.nixosSystem { in nixpkgs.lib.nixosSystem {
inherit pkgs specialArgs; inherit system specialArgs;
modules = [ modules = [
./hosts/${hostName}/configuration.nix ./hosts/${hostName}/configuration.nix
./hosts/${hostName}/hardware-configuration.nix ./hosts/${hostName}/hardware-configuration.nix

View file

@ -183,6 +183,7 @@
windowrule = workspace 6,(Signal) windowrule = workspace 6,(Signal)
windowrule = workspace 6,(fractal) windowrule = workspace 6,(fractal)
windowrule = workspace 6,(discord) windowrule = workspace 6,(discord)
windowrule = workspace 6,(Ferdium)
# 7: [v]ideo # 7: [v]ideo
bind = SUPER, V, moveworkspacetomonitor, 7 current bind = SUPER, V, moveworkspacetomonitor, 7 current

View file

@ -13,8 +13,10 @@
libsForQt5.polkit-kde-agent libsForQt5.polkit-kde-agent
mc mc
signal-desktop signal-desktop
ferdium
libreoffice libreoffice
zotero zotero
minesweep-rs
]; ];
programs = { programs = {
firefox.package = pkgs.firefox-wayland; firefox.package = pkgs.firefox-wayland;

View file

@ -1,7 +1,7 @@
# Edit this configuration file to define what should be installed on # Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ ... }: { { lib, ... }: {
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
@ -18,6 +18,8 @@
environment.etc."ppp/options".text = '' environment.etc."ppp/options".text = ''
ipcp-accept-remote ipcp-accept-remote
''; '';
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [ "nomachine-client" ];
services.syncthing.settings.folders = { services.syncthing.settings.folders = {
"Archive".enable = false; "Archive".enable = false;
"Books".enable = false; "Books".enable = false;

View file

@ -1,12 +1,7 @@
{ config, pkgs, lib, user, ... }: { config, pkgs, lib, user, ... }:
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [ openfortivpn nomachine-client teams-for-linux ];
openfortivpn
nomachine-client
teams-for-linux
zoom-us
];
programs = { programs = {
git.userEmail = "evie.litherland-smith@ukaea.uk"; git.userEmail = "evie.litherland-smith@ukaea.uk";
ssh.matchBlocks = { ssh.matchBlocks = {

View file

@ -1,5 +1,12 @@
{ pkgs, user ? "xenia", hyprland, ... }: { { pkgs, user ? "xenia", hyprland, ... }: {
imports = [ ./desktop.nix hyprland.nixosModules.default ]; imports = [ ./desktop.nix hyprland.nixosModules.default ];
nixpkgs.overlays = [
(final: prev: {
waybar = prev.waybar.overrideAttrs (oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
});
})
];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
libsForQt5.polkit-kde-agent libsForQt5.polkit-kde-agent
xdg-utils xdg-utils

View file

@ -1,6 +1,8 @@
{ ... }: { lib, ... }:
{ {
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [ "steam" "steam-original" "steam-run" ];
hardware = { hardware = {
opengl.driSupport32Bit = true; opengl.driSupport32Bit = true;
steam-hardware.enable = true; steam-hardware.enable = true;