Compare commits

..

No commits in common. "1379582e62b00c18fcc68979a411f2e026401b07" and "34fe86060c49dcf266ee7e3c328d39f40880d641" have entirely different histories.

6 changed files with 32 additions and 80 deletions

66
flake.lock generated
View File

@ -4,65 +4,46 @@
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ]
"utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1666649150, "narHash": "sha256-T4at7d+KsQNWh5rfjvOtQCaIMWjSDlSgQZKvxb+LcEY=",
"narHash": "sha256-kINnLxC0KFalUk4tVO/H5hUU7FVAOYYcUSWrsBpnl+I=", "type": "tarball",
"owner": "nix-community", "url": "https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz"
"repo": "home-manager",
"rev": "7dc4e4ebd71280842b4d30975439980baaac9db8",
"type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "type": "tarball",
"repo": "home-manager", "url": "https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz"
"type": "github"
} }
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1665987993, "lastModified": 1665649208,
"narHash": "sha256-MvlaIYTRiqefG4dzI5p6vVCfl+9V8A1cPniUjcn6Ngc=", "narHash": "sha256-MDkPVG4W8gigJ8OxWDp9L6aKaEwLRV3As1RvKkMq0rc=",
"owner": "nixos", "owner": "nixos",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "0e6593630071440eb89cd97a52921497482b22c6", "rev": "d92ed98c099ae731664fc526c348d609c4cffe04",
"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": 1666709108, "lastModified": 1653936696,
"narHash": "sha256-fBCVW1SpaAav6V8V99tHLeZefCAEAaOvD70Gb2H/D4U=", "narHash": "sha256-M6bJShji9AIDZ7Kh7CPwPBPb/T7RiVev2PAcOi4fxDQ=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9237fad40957a5ec3d6d6fb17675c1eae6743497", "rev": "ce6aa13369b667ac2542593170993504932eb836",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "ref": "nixos-22.05",
"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"
} }
@ -80,7 +61,9 @@
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ],
"nixpkgs-22_05": "nixpkgs-22_05" "nixpkgs-22_05": [
"nixpkgs"
]
}, },
"locked": { "locked": {
"lastModified": 1665289655, "lastModified": 1665289655,
@ -95,21 +78,6 @@
"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,18 +2,25 @@
description = "NixOS configurations for my machines"; description = "NixOS configurations for my machines";
inputs = { inputs = {
nixpkgs.url = github:nixos/nixpkgs; nixpkgs.url = github:nixos/nixpkgs/nixos-22.05;
nixos-hardware = { nixos-hardware = {
url = github:nixos/nixos-hardware; url = github:nixos/nixos-hardware/master;
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
home-manager = { home-manager = {
url = github:nix-community/home-manager; url = "https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz";
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,7 +26,6 @@
packages = with pkgs; [ packages = with pkgs; [
age age
bitwarden bitwarden
bitwarden-cli
chromium chromium
fd fd
feh feh
@ -35,9 +34,8 @@
fzf fzf
#gnumake #gnumake
hack-font hack-font
inconsolata
jq jq
keyutils # for keyctl, used by some bitwarden scripts like qute-bitwarden inconsolata
libreoffice libreoffice
logseq logseq
mupdf mupdf
@ -46,7 +44,6 @@
#pandoc #pandoc
pavucontrol pavucontrol
ripgrep ripgrep
rofi
scli scli
scrot scrot
signal-desktop signal-desktop
@ -56,7 +53,6 @@
sxiv sxiv
#texlive.combined.scheme-full #texlive.combined.scheme-full
xclip xclip
xpra
zathura zathura
zoom-us zoom-us
]; ];
@ -81,18 +77,10 @@
mimeApps = { mimeApps = {
enable = true; enable = true;
associations.added = { associations.added = {
"application/pdf" = ["org.pwmt.zathura-pdf-mupdf.desktop"]; "application/pdf" = ["zathura.desktop"];
}; };
defaultApplications = let defaultApplications = {
browser = [ "org.qutebrowser.qutebrowser.desktop" "firefox.desktop" ]; "application/pdf" = ["zathura.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;
}; };
}; };
}; };
@ -190,9 +178,6 @@
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,9 +25,6 @@
",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,10 +38,9 @@ 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,10 +134,6 @@
#media-session.enable = true; #media-session.enable = true;
}; };
printing = {
enable = true;
};
syncthing = import ./syncthing.nix; syncthing = import ./syncthing.nix;
udev.extraRules = '' udev.extraRules = ''