fixing channels

This commit is contained in:
batvin123 2024-11-07 08:59:26 -05:00
parent 5ba8eeb82b
commit 59e8ce973e
4 changed files with 45 additions and 34 deletions

View File

@ -37,10 +37,27 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-unstable": {
"locked": {
"lastModified": 1730785428,
"narHash": "sha256-Zwl8YgTVJTEum+L+0zVAWvXAGbWAuXHax3KzuejaDyo=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "4aa36568d413aca0ea84a1684d2d46f55dbabad7",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable"
} }
} }
}, },

View File

@ -2,35 +2,31 @@
description = "my nixos setup"; description = "my nixos setup";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; nixpkgs.url = "github:nixos/nixpkgs/release-24.05";
home-manager.url = "github:nix-community/home-manager/master"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = { nixpkgs, home-manager, ... }: outputs = { self, nixpkgs, ... }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
overlay-unstable = final: prev: {
pkgs = import nixpkgs { unstable = import nixpkgs-unstable {
inherit system; inherit system;
config = { allowUnfree = true; }; config.allowUnfree = true;
};
lib = nixpkgs.lib;
in {
homeManagerConfigurations = {
vincent = home-manager.lib.homeManagerConfiguration {
inherit system pkgs;
username = "vincent";
homeDirectory = "/home/vincent";
configuration = {
import = [
./users/vincent/home.nix
];
};
}; };
}; };
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
overlays = [
overlay-unstable
];
};
in {
nixosConfigurations = { nixosConfigurations = {
vincents-hp = lib.nixosSystem { vincents-hp = lib.nixosSystem {
inherit system; inherit system;

View File

@ -5,9 +5,7 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
let let
unstableTarball = unstableTarball = import <nixpkgs-unstable> {};
fetchTarball
https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz;
in in
@ -95,7 +93,7 @@ in
services.printing.drivers = [ pkgs.hplip ]; services.printing.drivers = [ pkgs.hplip ];
# Enable sound with pipewire. # Enable sound with pipewire.
sound.enable = true; #sound.enable = true;
hardware.pulseaudio.enable = false; hardware.pulseaudio.enable = false;
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = { services.pipewire = {

View File

@ -4,11 +4,11 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
let #let
unstableTarball = #unstableTarball =
fetchTarball # fetchTarball
https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz; # https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz;
in #in
{ {
@ -95,7 +95,7 @@ in
services.printing.drivers = [ pkgs.hplip ]; services.printing.drivers = [ pkgs.hplip ];
# Enable sound with pipewire. # Enable sound with pipewire.
sound.enable = true; #sound.enable = true;
hardware.pulseaudio.enable = false; hardware.pulseaudio.enable = false;
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = { services.pipewire = {