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": {
"nixpkgs": [
"nixpkgs"
]
],
"utils": "utils"
},
"locked": {
"narHash": "sha256-T4at7d+KsQNWh5rfjvOtQCaIMWjSDlSgQZKvxb+LcEY=",
"type": "tarball",
"url": "https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz"
"lastModified": 1666649150,
"narHash": "sha256-kINnLxC0KFalUk4tVO/H5hUU7FVAOYYcUSWrsBpnl+I=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "7dc4e4ebd71280842b4d30975439980baaac9db8",
"type": "github"
},
"original": {
"type": "tarball",
"url": "https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz"
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1665649208,
"narHash": "sha256-MDkPVG4W8gigJ8OxWDp9L6aKaEwLRV3As1RvKkMq0rc=",
"lastModified": 1665987993,
"narHash": "sha256-MvlaIYTRiqefG4dzI5p6vVCfl+9V8A1cPniUjcn6Ngc=",
"owner": "nixos",
"repo": "nixos-hardware",
"rev": "d92ed98c099ae731664fc526c348d609c4cffe04",
"rev": "0e6593630071440eb89cd97a52921497482b22c6",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "master",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1653936696,
"narHash": "sha256-M6bJShji9AIDZ7Kh7CPwPBPb/T7RiVev2PAcOi4fxDQ=",
"lastModified": 1666709108,
"narHash": "sha256-fBCVW1SpaAav6V8V99tHLeZefCAEAaOvD70Gb2H/D4U=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "ce6aa13369b667ac2542593170993504932eb836",
"rev": "9237fad40957a5ec3d6d6fb17675c1eae6743497",
"type": "github"
},
"original": {
"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",
"type": "github"
}
@ -61,9 +80,7 @@
"nixpkgs": [
"nixpkgs"
],
"nixpkgs-22_05": [
"nixpkgs"
]
"nixpkgs-22_05": "nixpkgs-22_05"
},
"locked": {
"lastModified": 1665289655,
@ -78,6 +95,21 @@
"repo": "sops-nix",
"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",

View File

@ -2,25 +2,18 @@
description = "NixOS configurations for my machines";
inputs = {
nixpkgs.url = github:nixos/nixpkgs/nixos-22.05;
nixpkgs.url = github:nixos/nixpkgs;
nixos-hardware = {
url = github:nixos/nixos-hardware/master;
url = github:nixos/nixos-hardware;
inputs.nixpkgs.follows = "nixpkgs";
};
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";
};
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-22_05.follows = "nixpkgs";
};
};

View File

@ -26,6 +26,7 @@
packages = with pkgs; [
age
bitwarden
bitwarden-cli
chromium
fd
feh
@ -34,8 +35,9 @@
fzf
#gnumake
hack-font
jq
inconsolata
jq
keyutils # for keyctl, used by some bitwarden scripts like qute-bitwarden
libreoffice
logseq
mupdf
@ -44,6 +46,7 @@
#pandoc
pavucontrol
ripgrep
rofi
scli
scrot
signal-desktop
@ -53,6 +56,7 @@
sxiv
#texlive.combined.scheme-full
xclip
xpra
zathura
zoom-us
];
@ -77,10 +81,18 @@
mimeApps = {
enable = true;
associations.added = {
"application/pdf" = ["zathura.desktop"];
"application/pdf" = ["org.pwmt.zathura-pdf-mupdf.desktop"];
};
defaultApplications = {
"application/pdf" = ["zathura.desktop"];
defaultApplications = let
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 = {
enable = true;
};
nushell = {
enable = true;
};
qutebrowser = import ./qutebrowser.nix;
rbw = {
enable = true;

View File

@ -25,6 +25,9 @@
",s" = "set-cmd-text -s :session-save -o";
",o" = "set-cmd-text -s :session-load";
",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
("M-'", spawn "qutebrowser")
, ("M-s", spawn "scrot -s")
-- launch a terminal _without_ a new tmux session
, ("M-C-<Return>", spawn "kitty")
-- screenshot
, ("M-s", spawn "flameshot gui")
-- xrandr commands for when (dis)connecting from external monitor
-- I have temporarily given up on using autorandr fo rthis
, ("M-x", spawn "xrandr --output DP-1 --auto --output eDP-1 --off") -- external

View File

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