nix/flake.nix

90 lines
2.2 KiB
Nix

{
description = "A flake using my config";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
stable-nixpkgs.url = "nixpkgs/nixos-23.11";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
stylix.url = "github:danth/stylix";
hyprland.url = "github:hyprwm/Hyprland/v0.34.0";
hycov = {
url = "github:DreamMaoMao/hycov";
inputs.hyprland.follows = "hyprland";
};
};
outputs = inputs: let
system = "x86_64-linux";
pkgs = import inputs.nixpkgs {inherit system;};
user = "tristan";
userFullname = "Tristan Beedell";
auto-login = import ./nixos/programs/auto-login.nix;
mkConf = import ./lib/mkconf.nix {inherit inputs system user userFullname;};
in {
formatter.${system} = pkgs.alejandra;
nixosConfigurations = {
zenix =
mkConf [
./hardware/zenix.nix
(auto-login "Hyprland")
./nixos/programs/gamer.nix
./nixos/programs/personal.nix
./nixos/programs/anki.nix
] [
./home/programs/gamer.nix
./home/desktop/hyprland/.
./home/programs/personal/.
];
FCS-Tristan-Nixbook =
mkConf [
./hardware/fcs-tristan-nixbook.nix
(auto-login "Hyprland")
./nixos/modules/work.nix
] [
./home/programs/work.nix
./home/desktop/hyprland/.
];
vm-sway =
builtins.trace ''
use super+enter to start a terminal.
use super+d to launch applications
start the vm with '-vga qxl' or '-vga virtio'
''
mkConf
[
./hardware/vm.nix
(auto-login "sway")
] [
./home/desktop/sway/.
];
vm-hyprland =
builtins.trace ''
use super+enter to start a terminal.
use super+d to launch applications
Hyprland is VERY SLOW in the VM.
start with '-vga virtio'
''
mkConf
[
./hardware/vm.nix
(./nixos/programs/auto-login.nix "Hyprland")
] [
./home/desktop/hyprland/.
];
vm-tty = mkConf [
./hardware/vm.nix
] [];
};
};
}