FEAT: Implemented devShell

This commit is contained in:
Patrick Großmann 2023-02-08 19:52:31 +01:00
parent 5c7d7d73a5
commit 24603f6a7f
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
8 changed files with 56 additions and 35 deletions

View file

@ -12,5 +12,4 @@ xsetroot -solid '#000000'
#
#touchegg &
#dunst &
polybar &
exec dbus-launch --sh-syntax --exit-with-session -- herbstluftwm --locked

View file

@ -66,11 +66,11 @@
"utils": "utils"
},
"locked": {
"lastModified": 1675637696,
"narHash": "sha256-tilJS8zCS3PaDfVOfsBZ4zspuam8tc7IMZxtGa/K/uo=",
"lastModified": 1675855108,
"narHash": "sha256-KSiF7aTXTLlocFjMj+61USedaaiscD1ek6f/anFqr3Q=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "c43d4a3d6d9ef8ddbe2438362f5c775b4186000b",
"rev": "e631d78ddfbf808fd1cfc4d79039a1b3acda5bed",
"type": "github"
},
"original": {
@ -81,11 +81,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1675673983,
"narHash": "sha256-8hzNh1jtiPxL5r3ICNzSmpSzV7kGb3KwX+FS5BWJUTo=",
"lastModified": 1675763311,
"narHash": "sha256-bz0Q2H3mxsF1CUfk26Sl9Uzi8/HFjGFD/moZHz1HebU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5a350a8f31bb7ef0c6e79aea3795a890cf7743d4",
"rev": "fab09085df1b60d6a0870c8a89ce26d5a4a708c2",
"type": "github"
},
"original": {

View file

@ -45,7 +45,19 @@
];
};
}
// flake-utils.lib.eachSystem [system] (localSystem: {
// flake-utils.lib.eachSystem [system] (localSystem: rec {
pkgs = import nixpkgs {
inherit localSystem;
};
apps = import ./apps/rekey.nix inputs localSystem;
devShells.default = pkgs.mkShell {
name = "patricks tolle nix config";
packages = with pkgs; [
alejandra
statix
update-nix-fetchgit
];
};
});
}

View file

@ -43,6 +43,11 @@
};
in {
enable = true;
hooks.postswitch = {
"reload_wm" = "herbstclient reload";
};
profiles.AStA_links = asta_conf {
# AStA linker arbeitsplatz linker Monitor
DP-1-1 = "00ffffffffffff000472ed0688687101111e010380351e782aa135a35b4fa327115054b30c00714f818081c081009500b300d1c001012a4480a070382740082098040f282100001a023a801871382d40582c45000f282100001e000000fd00304b1e5512000a202020202020000000fc00423234375920430a202020202001cf020327f14b9002030411121300001f01230907078301000065030c001000681a00000101304be6023a801871382d40582c45000f282100001e8c0ad08a20e02d10103e96000f2821000018011d007251d01e206e2855000f282100001e8c0ad090204031200c4055000f282100001800000000000000000000000000000000d0";

View file

@ -21,12 +21,12 @@
"$git_commit"
"$git_state"
"$git_status"
"$nix_shell"
"$character"
];
right_format = lib.concatStrings [
"$cmd_duration"
"$nix_shell"
"( $cmd_duration)"
"$status"
"$jobs"
" $time"
@ -79,6 +79,7 @@
nix_shell = {
heuristic = true;
format = "[$symbol$state( \($name\))]($style)";
};
cmd_duration = {
@ -116,8 +117,8 @@
(lib.mkAfter ''
bind \cr _atuin_search
# prefix search for up and down arrow
bind -k up history-prefix-search-backward
bind -k down history-prefix-search-forward
bind \e\[A history-prefix-search-backward
bind \e\[B history-prefix-search-forward
#Include atuin auto completions
atuin gen-completions --shell fish | source
'')

View file

@ -18,9 +18,8 @@ in {
});
extraConfig = ''
herbstclient set auto_detect_monitors 1
autorandr -c
herbstclient detect_monitors
herbstclient merge_tag default
killall polybar
polybar &
herbstclient attr theme.tiling.reset 1
herbstclient attr theme.floating.reset 1

3
users/common/rofi.nix Normal file
View file

@ -0,0 +1,3 @@
{...}: {
programs.rofi.enable = true;
}

View file

@ -9,6 +9,7 @@
common/autorandr.nix
common/desktop.nix
common/polybar.nix
common/rofi.nix
];
home = {
@ -20,6 +21,7 @@
nextcloud-client
signal-desktop
spotify
xdragon
];
};