Compare commits

..

No commits in common. "402aced75daf4f638d8b02e10e1fba36f25ef34e" and "9f6d795f882ac06d3308e0fa4ffbb4e3ec60aa3d" have entirely different histories.

9 changed files with 7 additions and 63 deletions

View File

@ -144,8 +144,6 @@
nixosModules = (import ./modules/nixos) moduleInputs; nixosModules = (import ./modules/nixos) moduleInputs;
homeManagerModules = (import ./modules/home-manager) moduleInputs; homeManagerModules = (import ./modules/home-manager) moduleInputs;
packages = eachSystem (system: import ./pkgs { inherit nixpkgs system; }); packages = eachSystem (system: import ./pkgs { inherit nixpkgs system; });
apps = eachSystem (system: import ./pkgs/apps.nix
{ inherit (self.outputs) packages; inherit system; });
nixosConfigurations = { nixosConfigurations = {
slab = mkSystem { slab = mkSystem {

View File

@ -1,4 +1,4 @@
{ lib, pkgs, osConfig, outputs, ... }@args: { lib, pkgs, osConfig, ... }@args:
let let
mkd = lib.mkDefault; mkd = lib.mkDefault;
terminal = "${pkgs.kitty}/bin/kitty"; terminal = "${pkgs.kitty}/bin/kitty";
@ -18,15 +18,11 @@ let
in in
if hasAttr key keyNames then keyNames."${key}" else key; if hasAttr key keyNames then keyNames."${key}" else key;
inherit (outputs.packages.${pkgs.system}) wm-helpers; wm-helpers = import ./wm-helpers.nix {inherit lib pkgs;};
keysetting = "${wm-helpers}/bin/keysetting"; inherit (wm-helpers) keysetting;
in in
{ {
# FIXME this is temporary just to get it working, need to make wm-common an
# option first
imports = [
./wm-common.nix
];
home.packages = with pkgs; [ home.packages = with pkgs; [
kitty kitty
dolphin dolphin

View File

@ -1,14 +0,0 @@
{ pkgs, lib, config, osConfig, options, ...}:
let
inherit (lib) mkDefault;
in
{
# Common options for standalone window managers; many of these (or
# alternatives thereof) are pulled in by desktop environments.
services = {
udiskie = {
enable = mkDefault true;
automount = mkDefault false;
};
};
}

View File

@ -1,6 +1,7 @@
# TODO make this into a package
{ pkgs, ...}: { pkgs, ...}:
let {
keysetting = pkgs.writeShellScriptBin "keysetting" '' keysetting = pkgs.writeShellScript "keysetting" ''
wpctl=${pkgs.wireplumber}/bin/wpctl wpctl=${pkgs.wireplumber}/bin/wpctl
notify_send=${pkgs.libnotify}/bin/notify-send notify_send=${pkgs.libnotify}/bin/notify-send
brightnessctl=${pkgs.brightnessctl}/bin/brightnessctl brightnessctl=${pkgs.brightnessctl}/bin/brightnessctl
@ -34,8 +35,4 @@ let
mondown) setbright 5%-;; mondown) setbright 5%-;;
esac esac
''; '';
in
pkgs.symlinkJoin {
name = "wm-helpers";
paths = keysetting;
} }

View File

@ -1,9 +0,0 @@
{ packages, system, ... }:
let _packages = packages; in
let
packages = _packages.${system};
mkApp = program: { type = "app"; inherit program; };
in
{
keysetting = mkApp "${packages.wm-helpers}/bin/keysetting";
}

View File

@ -5,5 +5,4 @@ let
in in
{ {
google-fonts = callPackage ./google-fonts { }; google-fonts = callPackage ./google-fonts { };
wm-helpers = callPackage ./wm-helpers { };
} }

View File

@ -11,10 +11,6 @@
# Enable flakes # Enable flakes
nix.settings.experimental-features = ["nix-command" "flakes" ]; nix.settings.experimental-features = ["nix-command" "flakes" ];
# fallback to building locally if binary cache fails (home-manager should be
# able to handle simple rebuilds offline)
nix.settings.fallback = true;
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
@ -35,7 +31,6 @@
zsh zsh
ntfs3g ntfs3g
openssh openssh
sshfs
file file
fd fd
@ -63,7 +58,6 @@
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ] ++ options.nix.nixPath.default; nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ] ++ options.nix.nixPath.default;
programs.ssh.enableAskPassword = false; programs.ssh.enableAskPassword = false;
programs.fuse.userAllowOther = true;
programs.gnupg.agent = { programs.gnupg.agent = {
enable = lib.mkDefault true; enable = lib.mkDefault true;

View File

@ -2,8 +2,6 @@
{ {
imports = [ imports = [
./desktop-common.nix ./desktop-common.nix
# FIXME make this into an option
./wm-common.nix
]; ];
services.xserver.displayManager.sddm.enable = true; services.xserver.displayManager.sddm.enable = true;

View File

@ -1,15 +0,0 @@
{ pkgs, lib, config, options, ...}:
let
inherit (lib) mkDefault;
in
{
# Common options for standalone window managers; many of these (or
# alternatives thereof) are pulled in by desktop environments.
services = {
power-profiles-daemon.enable = mkDefault true;
blueman.enable = mkDefault config.hardware.bluetooth.enable;
};
programs = {
nm-applet.enable = mkDefault config.networking.networkmanager.enable;
};
}