flakes and unstable obs

This commit is contained in:
tess 2023-03-15 23:44:26 +01:00
parent 81236ecfe6
commit 76654b249c
3 changed files with 47 additions and 7 deletions

View File

@ -2,8 +2,13 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ config, pkgs, kaokao, ... }:
let
unstableTarball =
fetchTarball
https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
in
{
imports =
[ # Include the results of the hardware scan.
@ -11,6 +16,10 @@
./hostname.nix
];
nixpkgs.config.permittedInsecurePackages = [
"python-2.7.18.6"
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
@ -18,7 +27,9 @@
boot.loader.efi.efiSysMountPoint = "/boot/efi";
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# enables flakes
nix.settings.experimental-features = ["nix-command" "flakes"];
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
@ -139,6 +150,13 @@
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
nixpkgs.config = {
packageOverrides = pkgs: with pkgs; {
unstable = import unstableTarball {
config = config.nixpkgs.config;
};
};
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
@ -154,11 +172,10 @@
i3status-rust
lxappearance
feh
rofimoji
kaokao.packages.${pkgs.system}.default
# streaming / gamign
obs-studio
obs-studio-plugins.obs-source-record
unstable.obs-studio
steam
lutris
joycond
@ -245,6 +262,7 @@
anki-bin
syncplay
tor-browser-bundle-bin
xclip
];

22
flake.nix Normal file
View File

@ -0,0 +1,22 @@
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.11";
supercolor.url = github:zoe-bat/supercolor;
kaokao.url = github:zoe-bat/kaokao;
};
outputs =
{ self
, nixpkgs
, supercolor
, kaokao
}@inputs: {
nixosConfigurations.queer-utopia = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
];
specialArgs = inputs;
};
};
}

View File

@ -6,6 +6,6 @@ git pull
cp -r /etc/nixos/ ./backup
sudo cp -r ./configuration.nix /etc/nixos/
sudo cp -r ./configuration.nix ./flake.nix /etc/nixos/
sudo nixos-rebuild switch --upgrade
sudo nixos-rebuild switch --upgrade --impure