mirror of
https://github.com/youwen5/liminalOS.git
synced 2025-06-20 05:59:51 -07:00
Merge 47f4aa7799
into 614dbadb34
This commit is contained in:
commit
6f5cbe390e
6 changed files with 119 additions and 34 deletions
|
@ -8,7 +8,7 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
rec {
|
||||||
imports = [ ./hardware-configuration.nix ];
|
imports = [ ./hardware-configuration.nix ];
|
||||||
|
|
||||||
networking.hostName = "adrastea";
|
networking.hostName = "adrastea";
|
||||||
|
@ -92,12 +92,24 @@
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
system = {
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
# this value at the release version of the first install of this system.
|
# this value at the release version of the first install of this system.
|
||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "24.05"; # Did you read the comment?
|
stateVersion = "24.05"; # Did you read the comment?
|
||||||
|
|
||||||
|
# Automatically rebuild system daily
|
||||||
|
autoUpgrade = {
|
||||||
|
enable = true;
|
||||||
|
flake = liminalOS.flakeLocation;
|
||||||
|
flags = [
|
||||||
|
"-L" # print build logs
|
||||||
|
];
|
||||||
|
dates = "daily";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
rec {
|
||||||
imports = [ ./hardware-configuration.nix ];
|
imports = [ ./hardware-configuration.nix ];
|
||||||
|
|
||||||
networking.hostName = "callisto";
|
networking.hostName = "callisto";
|
||||||
|
@ -86,5 +86,17 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "24.11";
|
system = {
|
||||||
|
stateVersion = "24.11";
|
||||||
|
|
||||||
|
# Automatically rebuild system daily
|
||||||
|
autoUpgrade = {
|
||||||
|
enable = true;
|
||||||
|
flake = liminalOS.flakeLocation;
|
||||||
|
flags = [
|
||||||
|
"-L" # print build logs
|
||||||
|
];
|
||||||
|
dates = "daily";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
rec {
|
||||||
networking.hostName = "cassini"; # Define your hostname.
|
networking.hostName = "cassini"; # Define your hostname.
|
||||||
|
|
||||||
liminalOS = {
|
liminalOS = {
|
||||||
|
@ -43,11 +43,23 @@
|
||||||
|
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
|
|
||||||
|
system = {
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
# this value at the release version of the first install of this system.
|
# this value at the release version of the first install of this system.
|
||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "24.05"; # Did you read the comment?
|
stateVersion = "24.05"; # Did you read the comment?
|
||||||
|
|
||||||
|
# Automatically rebuild system daily
|
||||||
|
autoUpgrade = {
|
||||||
|
enable = true;
|
||||||
|
flake = liminalOS.flakeLocation;
|
||||||
|
flags = [
|
||||||
|
"-L" # print build logs
|
||||||
|
];
|
||||||
|
dates = "daily";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
rec {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
@ -67,11 +67,23 @@
|
||||||
"/dev/disk/by-uuid/af320a0f-b388-43f5-b5a3-af2b47cfc716";
|
"/dev/disk/by-uuid/af320a0f-b388-43f5-b5a3-af2b47cfc716";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
system = {
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
# this value at the release version of the first install of this system.
|
# this value at the release version of the first install of this system.
|
||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "24.05"; # Did you read the comment?
|
stateVersion = "24.05"; # Did you read the comment?
|
||||||
|
|
||||||
|
# Automatically rebuild system daily
|
||||||
|
autoUpgrade = {
|
||||||
|
enable = true;
|
||||||
|
flake = liminalOS.flakeLocation;
|
||||||
|
flags = [
|
||||||
|
"-L" # print build logs
|
||||||
|
];
|
||||||
|
dates = "daily";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,6 +66,22 @@
|
||||||
ExecStart = "/nix/var/nix/profiles/system/bin/switch-to-configuration test";
|
ExecStart = "/nix/var/nix/profiles/system/bin/switch-to-configuration test";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
refresh = let
|
||||||
|
flakeLocation = "/home/youwen/.config/liminalOS";
|
||||||
|
in {
|
||||||
|
description = "Automatically update liminalOS";
|
||||||
|
after = [ "network-online.target" ];
|
||||||
|
requires = [ "network-online.target" ];
|
||||||
|
script = ''
|
||||||
|
cd ${flakeLocation}
|
||||||
|
${pkgs.git}/bin/git config --global --add safe.directory ${flakeLocation}
|
||||||
|
${pkgs.git}/bin/git pull
|
||||||
|
'';
|
||||||
|
serviceConfig = {
|
||||||
|
Environment = "HOME=/root";
|
||||||
|
};
|
||||||
|
wantedBy = [ ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
systemd.timers = {
|
systemd.timers = {
|
||||||
colorscheme-dawn = {
|
colorscheme-dawn = {
|
||||||
|
@ -86,6 +102,15 @@
|
||||||
Unit = "colorscheme-dusk.service";
|
Unit = "colorscheme-dusk.service";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
refresh = {
|
||||||
|
description = "Schedule daily system updates";
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
|
timerConfig = {
|
||||||
|
OnCalendar = "daily";
|
||||||
|
Persistent = true;
|
||||||
|
Unit = "refresh.service";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
security.polkit.extraConfig = ''
|
security.polkit.extraConfig = ''
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
rec {
|
||||||
imports = [
|
imports = [
|
||||||
# Important: you should replace hardware-configuration.nix with your actual
|
# Important: you should replace hardware-configuration.nix with your actual
|
||||||
# hardware-configuration.nix generated during NixOS installation, located
|
# hardware-configuration.nix generated during NixOS installation, located
|
||||||
|
@ -95,11 +95,23 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
system = {
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
# this value at the release version of the first install of this system.
|
# this value at the release version of the first install of this system.
|
||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "24.05"; # Did you read the comment?
|
stateVersion = "24.05"; # Did you read the comment?
|
||||||
|
|
||||||
|
# Automatically rebuild system daily
|
||||||
|
autoUpgrade = {
|
||||||
|
enable = true;
|
||||||
|
flake = liminalOS.flakeLocation;
|
||||||
|
flags = [
|
||||||
|
"-L" # print build logs
|
||||||
|
];
|
||||||
|
dates = "daily";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue