test
This commit is contained in:
parent
b01c7f3f7d
commit
316ea20450
2 changed files with 9 additions and 6 deletions
|
@ -1,4 +1,5 @@
|
||||||
{ config, unstable, ... }: {
|
{ config, unstable, ... }: {
|
||||||
|
# Use "unstable" instead of "pkgs" to get the latest packages, defined in "flake.nix"
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
# https://nixos.org/manual/nixos/stable/index.html#chap-gnome
|
# https://nixos.org/manual/nixos/stable/index.html#chap-gnome
|
||||||
# Enable the GNOME Desktop Environment.
|
# Enable the GNOME Desktop Environment.
|
||||||
|
@ -46,7 +47,6 @@
|
||||||
# Gnome relevant packages
|
# Gnome relevant packages
|
||||||
gnome3.gnome-tweaks
|
gnome3.gnome-tweaks
|
||||||
papirus-icon-theme
|
papirus-icon-theme
|
||||||
glibc
|
|
||||||
];
|
];
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
|
13
flake.nix
13
flake.nix
|
@ -6,6 +6,7 @@
|
||||||
inputs = {
|
inputs = {
|
||||||
# NixOS packages
|
# NixOS packages
|
||||||
stable-nixpkgs.url = "nixpkgs/nixos-23.05";
|
stable-nixpkgs.url = "nixpkgs/nixos-23.05";
|
||||||
|
next-nixpkgs.url = "nixpkgs/nixos-23.11";
|
||||||
unstable-nixpkgs.url = "nixpkgs/nixos-unstable";
|
unstable-nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
# Manage dotfiles in a home directory
|
# Manage dotfiles in a home directory
|
||||||
|
@ -28,7 +29,7 @@
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { stable-nixpkgs, unstable-nixpkgs, home-manager, lanzaboote, moz_overlay, nur, sops-nix, ... }@inputs:
|
outputs = { stable-nixpkgs, next-nixpkgs, unstable-nixpkgs, home-manager, lanzaboote, moz_overlay, nur, sops-nix, ... }@inputs:
|
||||||
let
|
let
|
||||||
# Variables - Remember to set these
|
# Variables - Remember to set these
|
||||||
hostname = "nixos-laptop";
|
hostname = "nixos-laptop";
|
||||||
|
@ -44,6 +45,11 @@
|
||||||
config = { allowUnfree = true; };
|
config = { allowUnfree = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
next = import next-nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
config = { allowUnfree = true; };
|
||||||
|
};
|
||||||
|
|
||||||
lib = stable-nixpkgs.lib;
|
lib = stable-nixpkgs.lib;
|
||||||
unstable-lib = unstable-nixpkgs.lib;
|
unstable-lib = unstable-nixpkgs.lib;
|
||||||
in {
|
in {
|
||||||
|
@ -51,10 +57,7 @@
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
# Declare a generic configuration using the $hostname variable:
|
# Declare a generic configuration using the $hostname variable:
|
||||||
${hostname} = lib.nixosSystem {
|
${hostname} = lib.nixosSystem {
|
||||||
inherit system;
|
inherit next unstable system;
|
||||||
# Tell NixOS to inherit the "Unstable" packages defined above.
|
|
||||||
# Used in the { } imports on each configuration file. See gnome.nix
|
|
||||||
specialArgs = { inherit unstable; };
|
|
||||||
modules = [
|
modules = [
|
||||||
# Configuration Imports
|
# Configuration Imports
|
||||||
./hosts/${hostname}/hardware-configuration.nix # Hardware Configuration
|
./hosts/${hostname}/hardware-configuration.nix # Hardware Configuration
|
||||||
|
|
Loading…
Reference in a new issue