Compare commits

...

5 Commits

Author SHA1 Message Date
Jacob Hinkle
1379582e62 Merge branch 'main' of git.jhink.org:jacob/nix_config 2022-11-02 09:29:26 -04:00
Jacob Hinkle
35645f6183 Stop hardcoding nixos-22.05 in flake.nix. Instead pin in flake.lock 2022-11-02 09:23:00 -04:00
Jacob Hinkle
0b9028fd02 Add qute-bitwarden keybinds for qutebrowser 2022-11-02 09:22:24 -04:00
Jacob Hinkle
7801fc70f2 Enable CUPS printing on buck 2022-11-02 09:21:29 -04:00
Jacob Hinkle
432e84a1da Add flameshot keybinding for screenshots 2022-11-02 09:21:20 -04:00
6 changed files with 80 additions and 32 deletions

66
flake.lock generated
View File

@ -4,46 +4,65 @@
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
] ],
"utils": "utils"
}, },
"locked": { "locked": {
"narHash": "sha256-T4at7d+KsQNWh5rfjvOtQCaIMWjSDlSgQZKvxb+LcEY=", "lastModified": 1666649150,
"type": "tarball", "narHash": "sha256-kINnLxC0KFalUk4tVO/H5hUU7FVAOYYcUSWrsBpnl+I=",
"url": "https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz" "owner": "nix-community",
"repo": "home-manager",
"rev": "7dc4e4ebd71280842b4d30975439980baaac9db8",
"type": "github"
}, },
"original": { "original": {
"type": "tarball", "owner": "nix-community",
"url": "https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz" "repo": "home-manager",
"type": "github"
} }
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1665649208, "lastModified": 1665987993,
"narHash": "sha256-MDkPVG4W8gigJ8OxWDp9L6aKaEwLRV3As1RvKkMq0rc=", "narHash": "sha256-MvlaIYTRiqefG4dzI5p6vVCfl+9V8A1cPniUjcn6Ngc=",
"owner": "nixos", "owner": "nixos",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "d92ed98c099ae731664fc526c348d609c4cffe04", "rev": "0e6593630071440eb89cd97a52921497482b22c6",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "master",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"type": "github" "type": "github"
} }
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1653936696, "lastModified": 1666709108,
"narHash": "sha256-M6bJShji9AIDZ7Kh7CPwPBPb/T7RiVev2PAcOi4fxDQ=", "narHash": "sha256-fBCVW1SpaAav6V8V99tHLeZefCAEAaOvD70Gb2H/D4U=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "ce6aa13369b667ac2542593170993504932eb836", "rev": "9237fad40957a5ec3d6d6fb17675c1eae6743497",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixos-22.05", "repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-22_05": {
"locked": {
"lastModified": 1666610816,
"narHash": "sha256-q4F2VNe5bpxXOvp16DyLwE1SgNZMbNO29ZQJPIomedg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "6107f97012a0c134c5848125b5aa1b149b76d2c9",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "release-22.05",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -61,9 +80,7 @@
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ],
"nixpkgs-22_05": [ "nixpkgs-22_05": "nixpkgs-22_05"
"nixpkgs"
]
}, },
"locked": { "locked": {
"lastModified": 1665289655, "lastModified": 1665289655,
@ -78,6 +95,21 @@
"repo": "sops-nix", "repo": "sops-nix",
"type": "github" "type": "github"
} }
},
"utils": {
"locked": {
"lastModified": 1659877975,
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View File

@ -2,25 +2,18 @@
description = "NixOS configurations for my machines"; description = "NixOS configurations for my machines";
inputs = { inputs = {
nixpkgs.url = github:nixos/nixpkgs/nixos-22.05; nixpkgs.url = github:nixos/nixpkgs;
nixos-hardware = { nixos-hardware = {
url = github:nixos/nixos-hardware/master; url = github:nixos/nixos-hardware;
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
home-manager = { home-manager = {
url = "https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz"; url = github:nix-community/home-manager;
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
sops-nix = { sops-nix = {
url = github:Mic92/sops-nix; url = github:Mic92/sops-nix;
# sops-nix uses both -22.05 and -unstable in their flake.
# As far as I can tell, 22.05 is only used for testing, whereas unstable
# is used for the tooling. So here, I let both of these follow our
# nixpkgs input. Note that after NixOS releases, this might break since
# they may do away with 22.05 at that point.
# https://github.com/Mic92/sops-nix/blob/master/flake.nix
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs-22_05.follows = "nixpkgs";
}; };
}; };

View File

@ -26,6 +26,7 @@
packages = with pkgs; [ packages = with pkgs; [
age age
bitwarden bitwarden
bitwarden-cli
chromium chromium
fd fd
feh feh
@ -34,8 +35,9 @@
fzf fzf
#gnumake #gnumake
hack-font hack-font
jq
inconsolata inconsolata
jq
keyutils # for keyctl, used by some bitwarden scripts like qute-bitwarden
libreoffice libreoffice
logseq logseq
mupdf mupdf
@ -44,6 +46,7 @@
#pandoc #pandoc
pavucontrol pavucontrol
ripgrep ripgrep
rofi
scli scli
scrot scrot
signal-desktop signal-desktop
@ -53,6 +56,7 @@
sxiv sxiv
#texlive.combined.scheme-full #texlive.combined.scheme-full
xclip xclip
xpra
zathura zathura
zoom-us zoom-us
]; ];
@ -77,10 +81,18 @@
mimeApps = { mimeApps = {
enable = true; enable = true;
associations.added = { associations.added = {
"application/pdf" = ["zathura.desktop"]; "application/pdf" = ["org.pwmt.zathura-pdf-mupdf.desktop"];
}; };
defaultApplications = { defaultApplications = let
"application/pdf" = ["zathura.desktop"]; browser = [ "org.qutebrowser.qutebrowser.desktop" "firefox.desktop" ];
img = [ "sxiv.desktop" "feh.desktop" ];
in {
"text/html" = browser;
"x-scheme-handler/http" = browser;
"x-scheme-handler/https" = browser;
"x-scheme-handler/about" = browser;
"x-scheme-handler/unknown" = browser;
"image/png" = img;
}; };
}; };
}; };
@ -178,6 +190,9 @@
notmuch = { notmuch = {
enable = true; enable = true;
}; };
nushell = {
enable = true;
};
qutebrowser = import ./qutebrowser.nix; qutebrowser = import ./qutebrowser.nix;
rbw = { rbw = {
enable = true; enable = true;

View File

@ -25,6 +25,9 @@
",s" = "set-cmd-text -s :session-save -o"; ",s" = "set-cmd-text -s :session-save -o";
",o" = "set-cmd-text -s :session-load"; ",o" = "set-cmd-text -s :session-load";
",d" = "set-cmd-text -s :session-delete"; ",d" = "set-cmd-text -s :session-delete";
",u" = "spawn --userscript qute-bitwarden --username-only";
",p" = "spawn --userscript qute-bitwarden --password-only";
",t" = "spawn --userscript qute-bitwarden --totp-only";
}; };
}; };
} }

View File

@ -38,9 +38,10 @@ myConfig = def
([ ([
-- launch programs -- launch programs
("M-'", spawn "qutebrowser") ("M-'", spawn "qutebrowser")
, ("M-s", spawn "scrot -s")
-- launch a terminal _without_ a new tmux session -- launch a terminal _without_ a new tmux session
, ("M-C-<Return>", spawn "kitty") , ("M-C-<Return>", spawn "kitty")
-- screenshot
, ("M-s", spawn "flameshot gui")
-- xrandr commands for when (dis)connecting from external monitor -- xrandr commands for when (dis)connecting from external monitor
-- I have temporarily given up on using autorandr fo rthis -- I have temporarily given up on using autorandr fo rthis
, ("M-x", spawn "xrandr --output DP-1 --auto --output eDP-1 --off") -- external , ("M-x", spawn "xrandr --output DP-1 --auto --output eDP-1 --off") -- external

View File

@ -134,6 +134,10 @@
#media-session.enable = true; #media-session.enable = true;
}; };
printing = {
enable = true;
};
syncthing = import ./syncthing.nix; syncthing = import ./syncthing.nix;
udev.extraRules = '' udev.extraRules = ''