Use alejandra for formatting Nix files
This commit is contained in:
parent
7db4788e49
commit
7302dae7ec
17 changed files with 273 additions and 244 deletions
|
@ -1,33 +1,43 @@
|
|||
{ config, desktop, inputs, pkgs, self, username, ... }:
|
||||
|
||||
let
|
||||
desktop-config = import ./desktop.nix { inherit config inputs pkgs username; };
|
||||
shared-config = import ../../shared/home-manager.nix { inherit inputs pkgs self username; };
|
||||
shared-packages = import ../../shared/home-manager-packages.nix { inherit inputs pkgs; };
|
||||
in
|
||||
{
|
||||
imports = if desktop then [ desktop-config shared-config ] else [ shared-config ];
|
||||
config,
|
||||
desktop,
|
||||
inputs,
|
||||
pkgs,
|
||||
self,
|
||||
username,
|
||||
...
|
||||
}: let
|
||||
desktop-config = import ./desktop.nix {inherit config inputs pkgs username;};
|
||||
shared-config = import ../../shared/home-manager.nix {inherit inputs pkgs self username;};
|
||||
shared-packages = import ../../shared/home-manager-packages.nix {inherit inputs pkgs;};
|
||||
in {
|
||||
imports =
|
||||
if desktop
|
||||
then [desktop-config shared-config]
|
||||
else [shared-config];
|
||||
|
||||
home.packages = shared-packages ++ pkgs.lib.optionals desktop [
|
||||
pkgs.discord
|
||||
pkgs.gimp
|
||||
pkgs.gscan2pdf
|
||||
pkgs.i3-auto-layout
|
||||
pkgs.kdenlive
|
||||
pkgs.meslo-lg
|
||||
pkgs.obs-studio
|
||||
pkgs.okular
|
||||
pkgs.pamixer
|
||||
pkgs.pass
|
||||
pkgs.pavucontrol
|
||||
pkgs.pinentry
|
||||
pkgs.slack
|
||||
pkgs.via
|
||||
pkgs.vlc
|
||||
pkgs.xsel
|
||||
pkgs.xcape
|
||||
pkgs.zoom-us
|
||||
];
|
||||
home.packages =
|
||||
shared-packages
|
||||
++ pkgs.lib.optionals desktop [
|
||||
pkgs.discord
|
||||
pkgs.gimp
|
||||
pkgs.gscan2pdf
|
||||
pkgs.i3-auto-layout
|
||||
pkgs.kdenlive
|
||||
pkgs.meslo-lg
|
||||
pkgs.obs-studio
|
||||
pkgs.okular
|
||||
pkgs.pamixer
|
||||
pkgs.pass
|
||||
pkgs.pavucontrol
|
||||
pkgs.pinentry
|
||||
pkgs.slack
|
||||
pkgs.via
|
||||
pkgs.vlc
|
||||
pkgs.xsel
|
||||
pkgs.xcape
|
||||
pkgs.zoom-us
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue