mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-01-09 18:47:31 -06:00
nix-index as a flake
This commit is contained in:
parent
a471f5a799
commit
346ad6aecf
4 changed files with 50 additions and 33 deletions
46
flake.lock
46
flake.lock
|
@ -68,11 +68,11 @@
|
||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1708346705,
|
"lastModified": 1708452876,
|
||||||
"narHash": "sha256-Zevax+tbcABJ9ZT/jOtJ8x4nudSAXhlBF0uIDSp8v4o=",
|
"narHash": "sha256-UrFrNfIwd0pcCTZYc6RAppzvpL6icfhelFMgufY5vxU=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "Hyprland",
|
"repo": "Hyprland",
|
||||||
"rev": "df82625206b6faffbf02d5d802e857143d656239",
|
"rev": "13d985489788fa5349b3457d6eb1c19bad8f37e9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -180,17 +180,18 @@
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"hyprland-contrib": "hyprland-contrib",
|
"hyprland-contrib": "hyprland-contrib",
|
||||||
"nix-eval-jobs": "nix-eval-jobs",
|
"nix-eval-jobs": "nix-eval-jobs",
|
||||||
|
"nix-index-database": "nix-index-database",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-wayland": "nixpkgs-wayland",
|
"nixpkgs-wayland": "nixpkgs-wayland",
|
||||||
"pinix": "pinix"
|
"pinix": "pinix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "inputs",
|
"dir": "inputs",
|
||||||
"lastModified": 1708362494,
|
"lastModified": 1708454456,
|
||||||
"narHash": "sha256-ldp9eBp8/slVmtUIas1lNUBScZTTnXWW7jFBnrr90qg=",
|
"narHash": "sha256-1B0dBpETWny25gVSCGi1r02AeEwVMxu4kz2KDFzK8Xs=",
|
||||||
"owner": "daylinmorgan",
|
"owner": "daylinmorgan",
|
||||||
"repo": "oizys",
|
"repo": "oizys",
|
||||||
"rev": "8965a18cceb4c07c5b66442ea5562977df19941e",
|
"rev": "a471f5a799c6ba0e4a4e57bc4ae4485f6c0b664e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -265,13 +266,34 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-index-database": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"inputs",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1708225687,
|
||||||
|
"narHash": "sha256-NJBDfvknI26beOFmjO2coeJMTTUCCtw2Iu+rvJ1Zb9k=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nix-index-database",
|
||||||
|
"rev": "17352eb241a8d158c4ac523b19d8d2a6c8efe127",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nix-index-database",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1708341091,
|
"lastModified": 1708407374,
|
||||||
"narHash": "sha256-3R7doGV1AoB5VKFifEd5elj8t4cld6VpJRpn9NaYr1Y=",
|
"narHash": "sha256-EECzarm+uqnNDCwaGg/ppXCO11qibZ1iigORShkkDf0=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "86ef6bd96b6279e1a4a53236d341f5df1ede3803",
|
"rev": "f33dd27a47ebdf11dc8a5eb05e7c8fbdaf89e73f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -310,11 +332,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1708345677,
|
"lastModified": 1708377258,
|
||||||
"narHash": "sha256-kmay2PfLBNL1fDYDlKyYj7P/JSqyFeMKzA+PMhEPbJI=",
|
"narHash": "sha256-qSVr87oW9P4VqX0ojSq4uiVq+Zmar5kYawpDl4++7bA=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixpkgs-wayland",
|
"repo": "nixpkgs-wayland",
|
||||||
"rev": "e01cca334cae6d9e852c8d657633695c681250fd",
|
"rev": "aa244b9568e89d7fb91cf0fb614dc1eae460982e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -17,45 +17,33 @@
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
systemd.services.screen-locker = {
|
|
||||||
wantedBy = ["sleep.target"];
|
|
||||||
description = "Lock the screen using a custom lock script";
|
|
||||||
before = ["suspend.target"];
|
|
||||||
serviceConfig = {
|
|
||||||
User = "daylin";
|
|
||||||
Type = "forking";
|
|
||||||
Environment = "DISPLAY=:0";
|
|
||||||
ExecStart = "${lock}/bin/lock";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
security.pam.services.swaylock = {};
|
security.pam.services.swaylock = {};
|
||||||
# programs.hyprland.package = inputs.hyprland.packages.${pkgs.system}.default;
|
# programs.hyprland.package = inputs.hyprland.packages.${pkgs.system}.default;
|
||||||
# Optional, hint electron apps to use wayland:
|
# Optional, hint electron apps to use wayland:
|
||||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
swayidle
|
||||||
wlr-randr
|
wlr-randr
|
||||||
kanshi
|
kanshi
|
||||||
|
|
||||||
lock
|
lock
|
||||||
brightnessctl
|
brightnessctl
|
||||||
udiskie
|
udiskie
|
||||||
|
eww-wayland
|
||||||
|
|
||||||
# notifications
|
# notifications
|
||||||
libnotify
|
libnotify
|
||||||
dunst
|
dunst
|
||||||
|
|
||||||
# screenshots
|
# utils
|
||||||
grimblast
|
grimblast
|
||||||
|
wl-clipboard
|
||||||
eww-wayland
|
|
||||||
rofi-wayland
|
rofi-wayland
|
||||||
hyprpaper
|
|
||||||
|
|
||||||
catppuccin-cursors.mochaDark
|
|
||||||
pavucontrol
|
pavucontrol
|
||||||
|
|
||||||
wl-clipboard
|
catppuccin-cursors.mochaDark
|
||||||
|
hyprpaper
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
|
|
|
@ -19,7 +19,5 @@
|
||||||
wget
|
wget
|
||||||
curl
|
curl
|
||||||
htop
|
htop
|
||||||
|
|
||||||
comma
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,10 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
imports = [
|
||||||
|
inputs.nix-index-database.nixosModules.nix-index
|
||||||
|
];
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
nix.package = pkgs.nixUnstable;
|
nix.package = pkgs.nixUnstable;
|
||||||
nix.extraOptions = ''
|
nix.extraOptions = ''
|
||||||
|
@ -18,12 +22,17 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# nix-output-monitor
|
|
||||||
alejandra
|
alejandra
|
||||||
|
|
||||||
self.packages.${pkgs.system}.oizys
|
self.packages.${pkgs.system}.oizys
|
||||||
inputs.pinix.packages.${pkgs.system}.default
|
inputs.pinix.packages.${pkgs.system}.default
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.nix-index-database.comma.enable = true;
|
||||||
|
|
||||||
|
# nix-index didn't like this being enabled?
|
||||||
|
programs.command-not-found.enable = false;
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
trusted-users = ["@wheel"];
|
trusted-users = ["@wheel"];
|
||||||
accept-flake-config = true;
|
accept-flake-config = true;
|
||||||
|
|
Loading…
Reference in a new issue